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

Fetch XML n:n relationships

$
0
0

Hi,

I have 2 types of records: Cases and JIRAs, and an N:N relationship between them. I am trying to build a FetchXML query, to retrieve my cases, with the list of JIRAs associated to them.

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false"><entity name="incident"><attribute name="title" /><order attribute="title" descending="false" /><link-entity name="new_incident_new_jira" from="incidentid" to="incidentid" visible="false" intersect="true"><link-entity name="new_jira" from="new_jiraid" to="new_jiraid" alias="ab"><filter type="and"><condition attribute="new_name" operator="not-null" /></filter><attribute name="new_name" /></link-entity></link-entity></entity></fetch>


When I do so, if a case has multiple JIRA, I get multiple times the same case record.

Is there a way to fix that?


Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images