We can achieve it simply by editing existing fetchXml
var fetchXml = "<filter type='and'>" +
"<condition attribute='attributename' operator='eq' value='" + attributeValue + "' />" +
"</filter>";
Xrm.Page.getControl("lookupfield").addCustomFilter(fetchXml);
Please click on this link for more details
var fetchXml = "<filter type='and'>" +
"<condition attribute='attributename' operator='eq' value='" + attributeValue + "' />" +
"</filter>";
Xrm.Page.getControl("lookupfield").addCustomFilter(fetchXml);
Please click on this link for more details
No comments:
Post a Comment