Wednesday, January 2, 2019

Apply Custom Filter on Lookup Field in Dynamics CRM using Script

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

           

No comments:

Post a Comment