Thursday 3 May 2012

How to retrieve all attributes using FetchXML in CRM 2011

Sometimes you might be querying a hidden entity in CRM, or you simply dont want to have to go into CRM to check field names.

Therefore to return all attributes in a fetchxml query you can simply add <all-attribues/> where you would usually list them and it will return them all.

Example:

<fetch version="1.0" output-format="xml-platform" mapping="logical" distinct="false">
<entity name="listmember">
<all-attributes/>
</entity>
</fetch>

No comments:

Post a Comment

ADFS Timeout on Server 2012 for CRM 2011

This follows on from this Microsoft Guide http://social.technet.microsoft.com/wiki/contents/articles/7681.setting-the-adfs-timeout-for-crm...