Notifications
Announcements
I have two columns in my SharePoint List 'State_Mandates':Role1 Role2 ID
Apples Grapefruit 1
Bananas Oranges 2
Pears Grapes 3
I would like to create a collection that will stack all of these items into a single Column and return their corresponding ID number as well. Here's an example:Role IDApples 1
Bananas 2
Pears 3
Grapefruit 1
Oranges 2
Grapes 3
Please help and thank you!
Hi @kgiles123,
You could use the following code to achieve this:
ClearCollect( colMerged, Ungroup( ForAll( 'State_Mandates', [ { Role: Role1, ID: ID }, { Role: Role2, ID: ID } ] ), "Value" ) )
If this solves your question, would you be so kind as to accept it as a solution & give it a thumbs up.
Thanks!
Thank you!!!
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Kalathiya 321 Super User 2026 Season 1
WarrenBelz 289 Most Valuable Professional
MS.Ragavendar 200 Super User 2026 Season 1