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 / Retrieve Group ID from...
Power Apps
Answered

Retrieve Group ID from Office365 Groups Connector

(0) ShareShare
ReportReport
Posted on by 7

Hi,

 

I need to retrieve the Group ID for a selected Group using the Office365 Groups Connector.

I have a dropdown control displaying the list of groups using: Office365Groups.ListGroups().value.displayName

 

How can I show the ID in a label for this selected group?

 

Thanks

Categories:
I have the same question (0)
  • Verified answer
    Gerard Simpson Profile Picture
    2,987 Moderator on at

    Hi @MP424940 

     

    Try this in your dropdown items:

     

    Office365Groups.ListOwnedGroupsV3().value

     

    Then add this to your label:

     

    Dropdown1.Selected.id

     

    Note: by adding  '.displayname' to the end of your Items code, just narrows your data down to the displayName column, which then means there is no corresponding id column available. By stopping your items at '.value', this then includes all the available columns.

     

     

    Hope this helps

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Hi,
    You can try using below formula -
    Office365Groups.ListGroups().value.id

  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    This will not work. Please use below logic:
    On Screen visible create a collection - Clear(colGroups); ForAll(Office365Groups.ListGroups().value.id, Collect(colGroups,{Value: id}))
    And then add a dropdown with Items property set to colGroups

  • MP424940 Profile Picture
    7 on at

    @AmDev wrote:

    Hi @MP424940 

     

    Try this in your dropdown items:

     

    Office365Groups.ListOwnedGroupsV3().value

     

    Then add this to your label:

     

    Dropdown1.Selected.id

     

    Note: by adding  '.displayname' to the end of your Items code, just narrows your data down to the displayName column, which then means there is no corresponding id column available. By stopping your items at '.value', this then includes all the available columns.

     

     

    Hope this helps


    Thanks, this works perfectly.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 150 Super User 2026 Season 2

Last 30 days Overall leaderboard