Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 46379

filter parentaccountid lookup on contact doesn't work properly

$
0
0

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



Viewing all articles
Browse latest Browse all 46379

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>