how can i query to CRM Dynamics for top 50 records like top in sqlserver.
thanks,
您需要QueryExpression属性TopCount
var query = new QueryExpression(entity) { ColumnSet = new ColumnSet(someColumns), Criteria = { Conditions = ... }, TopCount = 50 };
You can use fetch xml something like below:
<fetch top="50" >
<entity name="contact" >
<attribute name="contactid" />
<attribute name="fullname" />
</entity>
</fetch>
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.