Saturday, 16 April 2016

Retrieve All Records - FetchXML Query

In the following example, the FetchXML statement retrieves all accounts, with selected attributes:
  1. <fetch mapping='logical'>
  2. <entity name='account'>
  3. <attribute name='accountid'/>
  4. <attribute name='name'/>
  5. </entity>
  6. </fetch>
Explanation
  • FetchXML query will return all the records if no filter applied.
  • To retrieve the selected attributes for an entity specify each attribute separately.
    <attribute name='accountid'/>
    
    <attribute name='name'/>
- See more at: http://msxrmtools.com/fetchxml/reference

No comments:

Post a Comment