web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter based on relate...
Power Apps
Answered

Filter based on related table (Expand Query for List Rows)

(0) ShareShare
ReportReport
Posted on by 208

I would like to get all users of my Environments Group Team in a cloud-flow.

 

I tried the approach as explained here: https://powerusers.microsoft.com/t5/Using-Flows/Get-Team-Members-of-TEAM-Typ-Owner-in-CRM-dynamics-365-using/m-p/1374653/highlight/true#M27429 

 

carl1to_0-1640251158514.png

(vTeamNameKL is a string variable containing the name of the Group Team)

 

The results are not filtered, all users are returned, even if they are not assigned to a team. 

Does somebody know whats wrong?

 

I have the same question (0)
  • Verified answer
    carl1to Profile Picture
    208 on at

    Update: found an alternative for this

    https://crmkeeper.com/2019/08/31/cds-list-records-filter-query-using-flow/ 

     

    Use FetchXML:

     

     

    <fetch top="1">
     <entity name="systemuser">
     <link-entity name="teammembership" from="systemuserid" to="systemuserid" link-type="inner" intersect="true">
     <link-entity name="team" from="teamid" to="teamid" intersect="true">
     <filter>
     <condition attribute="name" operator="eq" value="TeamName" />
     </filter>
     </link-entity>
     </link-entity>
     </entity>
    </fetch>

     

     

  • Ram Prakash Duraisamy Profile Picture
    5,593 Super User 2025 Season 2 on at

    Hello @carl1to,

     

    Both Filter Query and FetchXML perform same operation with a milliseconds difference. Its good you have found a solution 🙂

     

    Please mark your solution as Completed so that others can fix it.

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard