cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sifu
Level: Powered On

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
Level 10

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

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
Level 10

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

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

Highlighted
Sifu
Level: Powered On

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

well done @EricLott 

Helpful resources

Announcements
thirdimage

Coming Soon: T-Shirt Design Contest

Keep your eyes open for our upcoming T-shirt design contest!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

Top Solution Authors
Top Kudoed Authors
Users online (4,850)