I have two entities: First I have 'contact' entity which contains both individuals and employees of company. I also have entity type 'account' which represents companies in my crm system.
I want to add filter to my customer search that contains:
- contact entity that equals customertypecode=1 (individuals but not company employee)
- All accounts
This is working only for contacts individual's:
var fetchXml = "<filter><condition attribute='customertypecode' operator='eq' value='1' /></filter>";
Xrm.Page.getControl("customerlookupfield").addCustomFilter(fetchXml);
But I also want it to show companies (account entity), could you help?