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

How to apply 'order by' in RetrieveMultiple operation using soap ?

$
0
0

Hi,

I am working on RetrieveMultiple operation for Dynamics CRM 2016 SOAP.
I would like to know how to provide Order filter in the soap request?

Please find snippet of soap request below:

<RetrieveMultiple xmlns="schemas.microsoft.com/.../Services" xmlns:i="www.w3.org/.../XMLSchema-instance">
<query i:type="a:QueryExpression" xmlns:a="schemas.microsoft.com/.../Contracts">
<a:ColumnSet>
<a:AllColumns>true</a:AllColumns>
<a:Columns xmlns:b="schemas.microsoft.com/.../Arrays" />
</a:ColumnSet>
<a:Criteria>
</a:Criteria>
<a:Distinct>false</a:Distinct>
<a:EntityName>contact</a:EntityName>
<a:LinkEntities />
<a:orders>
<a:order>
<a:attributename>firstname</a:attributename>
<a:ordertype>0</a:ordertype>
</a:order>
</a:orders>
<a:NoLock>false</a:NoLock>
</query>
</RetrieveMultiple>


Thanks


Viewing all articles
Browse latest Browse all 46379

Trending Articles



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