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

FetchXML - struggling to return records with no child

$
0
0

I have two records, projects and time entries.

I'm trying to make a view that shows all projects with no child time entries.

I've followed this https://msdn.microsoft.com/en-gb/library/dn531006.aspx but it's pulling back a record that does have a time entry.

Here is my fetchXML:

<fetch mapping="logical" output-format="xml-platform" version="1.0" distinct="true" ><entity name="prorm_project" ><attribute name="prorm_projectid" /><order descending="false" attribute="prorm_projectname" /><link-entity name="prorm_timeentry" from="prorm_rootprojectid" to="prorm_projectid" link-type="outer" alias="ad" ><filter type="and" ><condition attribute="prorm_timeentryid" operator="null" /></filter></link-entity></entity></fetch>

Viewing all articles
Browse latest Browse all 82002

Latest Images

Trending Articles



Latest Images