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 / The Update Function in...
Power Apps
Unanswered

The Update Function inside forAll only works for a single record

(0) ShareShare
ReportReport
Posted on by 2

Hi everyone, I need to add one local collection values into another local collection and I am using ForAll to do this but it is only updating the first record in the collection.

Here is my formula,

 

ForAll(envtable,
Update(citable,First(Filter(citable,ThisRecord.SysID=SysID)),
{
Environment:ThisRecord.Environment,
ApplicationName:LookUp(citable,SysID=ThisRecord.SysID,ApplicationName),
Child:LookUp(citable,SysID=ThisRecord.SysID,Child),
ChildClass:LookUp(citable,SysID=ThisRecord.SysID,ChildClass),
RelationType:LookUp(citable,SysID=ThisRecord.SysID,RelationType),
SysID:LookUp(citable,SysID=ThisRecord.SysID,SysID)}
)
);

where SysID is common column among two collections.

I need to update the record which matches the SysID of both collections one by one.

Please Help.

Thank you in advance

image.png
image.png
Categories:
  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @IshuPandey ,

     

    In case your use case matches this article, the below formula should work: 

    https://www.matthewdevaney.com/patch-multiple-records-in-power-apps-10x-faster/

     

    Patch(citable, envtable)

     

  • IshuPandey Profile Picture
    2 on at

    I need to compare SysId from both the collection and then map the data to matching record.

     

  • BCBuizer Profile Picture
    22,854 Super User 2026 Season 2 on at

    Hi @IshuPandey ,

     

    May I ask how the collection is populated? In case the process starts with ClearCollect(envtable, citable), and then only the Environment column gets amended, the proposed solution should work

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 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard