Created
June 6, 2023 07:13
-
-
Save AshV/7fb6dfe0b6ffa809d2270b63b20526e2 to your computer and use it in GitHub Desktop.
FetchXml query to list all Owner Teams where Current/LoggedIn user is a member.
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 version="1.0" output-format="xml-platform" mapping="logical" distinct="true"> | |
<entity name="team"> | |
<attribute name="name" /> | |
<attribute name="teamid" /> | |
<filter type="and"> | |
<condition attribute="teamtype" operator="ne" value="1" /> | |
</filter> | |
<link-entity name="teammembership" from="teamid" to="teamid" visible="false" intersect="true"> | |
<link-entity name="systemuser" from="systemuserid" to="systemuserid" alias="ae"> | |
<filter type="and"> | |
<condition attribute="systemuserid" operator="eq-userid"/> | |
</filter> | |
</link-entity> | |
</link-entity> | |
</entity> | |
</fetch> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment