Quantcast
Channel: CRM Development forum
Viewing all articles
Browse latest Browse all 8223

Ordering FetchXML results by linked entities' attributes

$
0
0

Hi Devs,

Is there any way, I can filter FetchXML results by linked entities' attributes?

See the sample FetchXML below. I want to order the fetched results by mysol_entity2.mysol_orderattribute first thenmysol_entity1.orderattribute. I have 4 linked entities in an actual FetchXML and the result should ideally be ordered by one attribute from each linked entity and a main entity.

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false" ><entity name="mysol_entity1" ><attribute name="mysol_orderattribute" /><order attribute="mysol_orderattribute" descending="false" /><link-entity name="mysol_entity2" from="mysol_entity2id" to="mysol_entity2" visible="false" link-type="outer" alias="entity2" ><attribute name="mysol_orderattribute" /></link-entity></entity></fetch>

Best regards,


blog: http://technologynotesforyou.wordpress.com | skype: ali.net.pk


Viewing all articles
Browse latest Browse all 8223

Trending Articles



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