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 / Fetch team members fro...
Power Apps
Unanswered

Fetch team members from D365 team in canvas app combobox

(0) ShareShare
ReportReport
Posted on by 20
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 Profile Picture
    5,576 Super User 2025 Season 2 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
    67 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

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 757 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 322 Super User 2025 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 209 Super User 2025 Season 2

Last 30 days Overall leaderboard