Hello every one,
I'm trying to filter the parentaccountid lookup on contact entity form based on a list of account record guids. The lookup displays me the accounts from my GUID list, but it also displays contacts related to these accounts.
Below, details of my code:
filter Xml: <filter type="and">
<filter type="or"> <condition attribute="accountid" operator="eq" value="{GUID1}" />
<condition attribute="accountid" operator="eq" value="{GUID2}" />
<condition attribute="accountid" operator="eq" value="{GUID3}" />
</filter> </filter> Setting a custom filter statement : Xrm.Page.getControl("parentcustomerid").addCustomFilter(xmlFilter);
I also try the following one, but it fails too.
Xrm.Page.getControl("parentcustomerid").addCustomFilter(xmlFilter, "accounts");
Has anyone ever met this problem? How to get around it?
Thanks