Saturday, 16 April 2016

Retrieve All Attributes - FetchXML Query

In the following example, the FetchXML statement retrieves all attributes for account records:
  1. <fetch mapping='logical'>
  2. <entity name='account'>
  3. <all-attributes/>
  4. </entity>
  5. </fetch>
Explanation
  • <all-attributes /> clause makes FetchXML query to retrive all attributes for an entity.
As a best-practice retrieve only the required attributes for better performance. Retrieving selected attributes is explained below.
- See more at: http://msxrmtools.com/fetchxml/reference

No comments:

Post a Comment