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 / GraphAPI Group Members...
Power Apps
Answered

GraphAPI Group Members Listed In ComboBox

(0) ShareShare
ReportReport
Posted on by 11

I am still somewhat new to PowerApps and have been searching for an answer to this all over. I want to pull the membership roster for a specific group using the GraphAPI and make the members selectable via a ComboBox. I am using PowerApps online.


Right now on a button press this executed 

Set(varGroup_Roster,Office365Groups.HttpRequest("https://graph.microsoft.com/v1.0/groups/"& GroupID & "/members","GET",""));

 Then I set the Items property of the ComboBox to: 

Table(varGroup_Roster.value)

After this I'm stuck since I cannot access the data. I've tried a lot of different ways. I've even done this:

ClearCollect(colRosterMembers, Table(varGroup_Roster.value));

yet none of the options are allowing me to access the displayName child property. I looked at the PowerApps monitor and see the ClearCollect table generate, I just cannot seem to access any of the columns in PowerApps. 

 

As a note, I followed the steps in the view here: https://www.youtube.com/watch?v=ZzWdXiMzA-c and was successful in populating a Gallery view from the Table() code shown above. 

 

I really appreciate any help/ideas the community has to solve my problem!

Categories:
  • v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @JohnDenham,

    If the collection is not empty and it is generated including displayName, could you please check the fields setting of the ComboBox?

    vqiaqimsft_0-1707351469649.png

     

  • JohnDenham Profile Picture
    11 on at

    Hey @v-qiaqi-msft ,

     

    When I click on the ComboxBox the datasource says ColRosterMembers but it greyed out if the I pass colRosterMember.Value to Items property.

     

    If I just pass colRosterMembers (and drop the .Value) I can select a datasource from the dropdown. Either way though, when I click 'Edit' next to fields there is nothing to select.

     

    I can see all the data on the backend in the Monitor. I just seems to me that the ComboBox does not parse the data in quite the same way as the Gallery on the back end.

    Screenshot 2024-02-08 at 6.12.03 AM.png

  • Verified answer
    JohnDenham Profile Picture
    11 on at

    Hey All, I figured out how to do what I needed. In my ComboBox I pass in the GraphAPI return as a Collection (that I created when I made the HTTPRequest. Then in the Items property I put this:

    ForAll(colRosterMembers, {DisplayName: Value.displayName})

    And then in my DisplayFields property I have this:

    ["DisplayName"]

    This is working as expected and I can see the roster results from the Group. I hope this can be helpful for someone!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 236 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard