Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save nicknow/6cf268f1b91b18f9fb90 to your computer and use it in GitHub Desktop.
Save nicknow/6cf268f1b91b18f9fb90 to your computer and use it in GitHub Desktop.
Dynamics CRM FetchXML Example To Retrieve Access Team Members
<fetch count="50" >
<entity name="opportunity" >
<attribute name="name" />
<link-entity name="principalobjectaccess" from="objectid" to="opportunityid" link-type="inner" alias="poa" >
<attribute name="objectid" alias="objectid" />
<link-entity name="team" from="teamid" to="principalid" link-type="inner" >
<link-entity name="teamtemplate" from="teamtemplateid" to="teamtemplateid" >
<attribute name="teamtemplatename" />
</link-entity>
<link-entity name="teammembership" from="teamid" to="teamid" link-type="inner" intersect="true" >
<link-entity name="systemuser" from="systemuserid" to="systemuserid" link-type="inner" >
<attribute name="fullname" />
</link-entity>
</link-entity>
</link-entity>
</link-entity>
</entity>
</fetch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment