Hi Team,
I have a FetchXML query that works in an SSRS report but fails in the Advanced Find. (CRM 2016 On Premise) I am using the View Designer within the XRMtoolbox tool.
I am starting at the Activity and bringing in all Contacts that are equal to an attribute on the contact form. Good so far. I then want to add any opportunity related to those contacts where the parent is the Contact record. I can display the results in the query window just fine. I can run this in an SSRS just fine. It just won't run in the Advanced Find in CRM.
I am unsure what is wrong unless the View Designer is not saving to CRM correctly?
Here is what happens when I display columns on the advanced find add columns window. Entire Fetch below.

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="true" count="50" >
<entity name="activitypointer" >
<attribute name="activitytypecode" />
<attribute name="subject" />
<attribute name="statecode" />
<attribute name="prioritycode" />
<attribute name="modifiedon" />
<attribute name="activityid" />
<attribute name="instancetypecode" />
<attribute name="community" />
<attribute name="createdon" />
<attribute name="regardingobjectid" />
<attribute name="ownerid" />
<order attribute="modifiedon" descending="false" />
<link-entity name="contact" from="contactid" to="regardingobjectid" alias="ax" >
<attribute name="address1_postalcode" />
<attribute name="parentcustomerid" />
<attribute name="lastname" />
<attribute name="sl_isvip" />
<attribute name="telephone2" />
<attribute name="fullname" />
<attribute name="firstname" />
<attribute name="sl_issrexecutive" />
<attribute name="emailaddress1" />
<attribute name="address1_city" />
<attribute name="telephone1" />
<filter type="and" >
<condition attribute="new_KeyFieldForContact" operator="not-null" />
</filter>
<link-entity name="opportunity" from="parentcontactid" to="contactid" alias="ai" visible="true" >
<attribute name="campaignid" />
<attribute name="new_verbaltotal" />
<attribute name="sl_opportunitytype" />
<filter type="and" >
<condition attribute="campaignid" operator="not-null" />
</filter>
</link-entity>
</link-entity>
</entity>
</fetch>
*This post is locked for comments
I have the same question (0)