cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Get the current iteration item PowerApps

Hello Guys,

 

I would like to know how do we get the current item that is under iteration in ForAll. 

 

I have a gallery with check boxes. On check and un-check event I am adding the checked item into a collection and removing it on un-check. 

 

I would need to insert these checked records into an entity, for that I am using ForAll to iterate the checked item collection, but I fail to get the current Item which is under iteration.

 

Any help would be highly appreciated. 

1 REPLY 1
Super User III
Super User III

@syed_aalam001 

You can use the @ symbol which is called the disambiguation operator.

ForAll(
    your_collection_name;
    Patch(your_datasource_name, ID=your_collection_name[@ID],{targetColumn: your_collection_name[@source_column]})
)

 

---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

 

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (89,714)