Just gives me a blank error:
var UPrecordOPEN; var identifier = Xrm.Page.getAttributes("new_identifier").getValue(); var childRec = Xrm.Page.data.entity.getId(); var parentRec = Xrm.Page.data.entity.attributes.get("new_regarding").getValue()[0].id; var fetchXml = "<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='false'>"; fetchXml += "<entity name='connection'>"; fetchXml += "<attribute name='connectionid' />"; fetchXml += "<filter type='and'>"; fetchXml += "<condition attribute='record2id' operator='eq' value='" + childRec + "' />"; fetchXml += "<condition attribute='record1id' operator='eq' value='" + parentRec + "' />"; fetchXml += "<condition attribute='new_identifier' operator='eq' value='" + identifier + "' />"; fetchXml += "</filter>"; fetchXml += "</entity>"; fetchXml += "</fetch>";