Announcements
Hello all, I need help on the filtering part of a party list field I want to change the default view (look in)
Put Related Contact for Entity ContactAnd for entities (look for) keep just the entity contact and hide the other entity
thank you very much
*This post is locked for comments
function EmailFilter(fieldname) { var HideEntities = ["account","lead", "systemuser"]; var filter; var i; for (i = 0; i<HideEntities.length; i++) { filter = "<filter type='and'>" + "<condition attribute='" + HideEntities[i] + "id' operator='null' />" + "</filter>"; Xrm.Page.getControl(fieldname).addCustomFilter(filter, HideEntities[i]); } }
Refer this:
André Arnaud de Cal...
293,302
Super User 2025 Season 1
Martin Dráb
232,114
Most Valuable Professional
nmaenpaa
101,156
Moderator