Created
May 19, 2015 22:21
-
-
Save nicknow/6cf268f1b91b18f9fb90 to your computer and use it in GitHub Desktop.
Dynamics CRM FetchXML Example To Retrieve Access Team Members
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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