web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Updating Collection fr...
Power Apps
Unanswered

Updating Collection from lookup ForAll loop

(0) ShareShare
ReportReport
Posted on by 7

I'm trying to build a collection that is made with JSON. That collection is then displayed in a Gallery where it takes a column and splits it by ";". Once this data is split, it needs to look up the Group IDs and grab all the users stored into a Multiselect People Picker field, and store it back into the collection under the group IDs field.

 

I've tried multiple things, but I need help getting the lookup to work and grab all member's emails or update the collection.

 

Group Table

----------------------------------

ID          Title         Members

 

The top portion works with no semi colon found, but forall looping is still a bit funky to me.

 

 

If(
 ThisItem.ActionType <> "User",
 Patch(
 ColListRouting,
 LookUp(
 ColListRouting,
 Id = ThisItem.Id
 ),
 {
 ActionID: 
 If(
 IsBlank(Find(";", ThisItem.ActionID)), 
 LookUp('List Routing Groups', ID = Value(ThisItem.ActionID), Concat(Members, Email, ";")),
 ForAll(
 Split(Text(ThisItem.ActionID), ";"),
 ThisItem.ActionID & LookUp('List Routing Groups', ID = Value(ThisRecord.Value), Concat(Members, Email, ";"))
 )
 )
 }
 ); 
);

 

 

Categories:

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.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard