Saturday, 16 April 2016

Limit Maximum Number Of Records Returned - FetchXML Query

In the below example, the FetchXML returns top 3 records of account.
  1. <fetch mapping='logical' count='3'>
  2. <entity name='account'>
  3. <attribute name='name' alias='name'/>
  4. </entity>
  5. </fetch>
Explanation
  • To limit maximum number of records returned specify count attribute in fetch node.
  • Maximum 5000 records can be returned from FetchXML query.
- See more at: http://msxrmtools.com/fetchxml/reference

No comments:

Post a Comment