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

fetchxml aggregate function

$
0
0

Hi, I have aggregation function inside the link entity, it is returning total number of records, however, when the link entity has no value, there is no result returned, how can I make it return 0 when there is no value. Please advise, 

<fetch aggregate="true"><entity name="contact"><attribute name="firstname" alias="firstname" groupby="true" /> <attribute name="lastname" alias="lastname" groupby="true" /> <filter><condition attribute="lastname" operator="eq" value="Manning" /> </filter><link-entity name="caution" from="customerid" to="contactid"><attribute name="startdate" aggregate="count" alias="Cautions" /> <filter><condition attribute="statuscode" operator="eq" value="1" /> </filter></link-entity></entity></fetch>

Viewing all articles
Browse latest Browse all 79901

Latest Images

Trending Articles



Latest Images

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