Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Anyone know why my fetchxml isn't working?

$
0
0

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>";


Viewing all articles
Browse latest Browse all 8223

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>