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