cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sifu
Continued Contributor
Continued Contributor

Office365Groups.ListOwnedGroups how to get two values (displayName & ID)

Hello all,

 

trying to build a form where we have two dropdowns

 

1: (Office365Groups.ListOwnedGroups().value).displayName   - this tells me all groups where user is owner

2: Office365Groups.ListGroupMembers(???).value.displayName - this should tell me users in that group, but i cant reference to the first drop down as the first dropdown returns displayName... if it would retrun ID, it would work... but regular users dont remember a long ID number.... hence i need to find a workaround...

 

curently i added a column groupid to the list (MYLIST) and let the formula make a lookup: Office365Groups.ListGroupMembers(LookUp('MYLIST',Title=group.Selected.Result,groupid)).value.displayName

 

Any suggestions? I dont really want to maintain a list of groiup ids...

 

thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
EricLott
Resident Rockstar
Resident Rockstar

The first dropdown should be set to 

 

Office365Groups.ListOwnedGroups().value

 

with the Value property (under the Items property in the properties pane on the right) set to displayName.

The second one can be set to

 

Office365Groups.ListGroupMembers(Dropdown1.Selected.id).value

 

With displayName as the Value 

2020-01-21 13_59_38-SQLQuery2.sql - ubpos02_liberty.PhysicalInventory (OWENSGROUP_elott (66))_ - Mic.png

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

2 REPLIES 2
EricLott
Resident Rockstar
Resident Rockstar

The first dropdown should be set to 

 

Office365Groups.ListOwnedGroups().value

 

with the Value property (under the Items property in the properties pane on the right) set to displayName.

The second one can be set to

 

Office365Groups.ListGroupMembers(Dropdown1.Selected.id).value

 

With displayName as the Value 

2020-01-21 13_59_38-SQLQuery2.sql - ubpos02_liberty.PhysicalInventory (OWENSGROUP_elott (66))_ - Mic.png

---
If this answered your question, please click "Accept Solution". If this helped, please Thumbs Up.

View solution in original post

Sifu
Continued Contributor
Continued Contributor

well done @EricLott 

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (1,518)