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
Super User
Super User

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
Super User
Super User

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

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

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

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

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.

Top Solution Authors
Top Kudoed Authors
Users online (1,817)