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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Fetch team members fro...
Power Apps
Suggested Answer

Fetch team members from D365 team in canvas app combobox

(0) ShareShare
ReportReport
Posted on by 114
I have created a team in D365 which has around 30 users. May i know how to fetch those users from D365 team in canvas app combobox?
 
I am querying Teams dataverse table, but i undetrstand its not possible directly. We need to use team membership table, but i cant trace this table.
 
I even tried below piece of code but it doesnt work. May i know how to fetch the users from D365 in canvas app?
 
ComboBox Items
Filter(
    Users,
    "XXXX-XXXX-XXXX-XXXX" in ShowColumns(
        LookUp(
            Users,
            'User Name' = Office365Users.MyProfileV2().userPrincipalName
        ).'Teams (teammembership_association)',
        'Team'
    )
)
 
I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,846 Super User 2026 Season 1 on at
    Hi,
     
    based on your code it will return only one value, try using below code to achieve the same

    Filter(
        Users,
        "XXXX-XXXX-XXXX-XXXX" in
            ShowColumns(
                'Teams (teammembership_association)',
                'Team'
            ).Team
    )

    Please mark as answer if my suggestion helps.
    Subscribe here for More Useful videos : https://www.youtube.com/@rampprakash3991
  • Suggested answer
    Raymen Deol Profile Picture
    75 on at
    Hi,
     
    Your assumption about the data being in the team membership table is correct. This is a intersect or relationship table created to accommodate the many to many relationship between the Users and Teams tables. I don't believe you can directly query this table from a canvas app. 
     
    Please try the formula below, I tested it to ensure it works and follows best practices from the following Microsoft Learn article:
     
    This should work for both the Classic and Modern Combo box controls
     
    Set the items field to:
    ForAll(
      First(Filter(Teams, name="YOUR TEAM NAME GOES HERE")).Users,
      { Text: 'First Name', Value: 'First Name' }
    )
    Replace with your team name and ensure that the app is connected to the Teams and Users table datasource.
     
    Another solution for this would be to use power automate to retrieve a list of users for a specific team.
     
    Please let me know if this works or if you need more assistance.
     
    Thank you, 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 842

#2
Valantis Profile Picture

Valantis 563

#3
Haque Profile Picture

Haque 402

Last 30 days Overall leaderboard