cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Sifu
Responsive Resident
Responsive Resident

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
Responsive Resident
Responsive Resident

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (59,007)