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 multiple reco...
Power Apps
Answered

Updating multiple records using patch

(0) ShareShare
ReportReport
Posted on by 6

I'm trying to update all records when the user picks the employee and changes their Equipment Status with the combo box but confused how to implement an update or ForAll loop. 

 

statuschange.PNG

Categories:
I have the same question (0)
  • Verified answer
    rzuber Profile Picture
    552 Moderator on at

    Can you use UpdateIf()? Update and UpdateIf functions - Power Platform | Microsoft Learn

     

     

    UpdateIf(
     FullEquipmentMasterList,
     EMPLOYEE = EmployeeBox_Status.Selected.EMPLOYEE,
     {'EQUIPMENT HR STATUS':NewHRStatusBox.Selected.STATUS}
    )

     

     

     

    Here's a ForAll() loop example to Patch each record one by one:

     

     

    With(
     {_records: Filter(FullEquipmentMasterList, EMPLOYEE = EmployeeBox_Status.Selected.EMPLOYEE)},
     ForAll(
     _records As _rec,
     Patch(
     FullEquipmentMasterList,
     _rec,
     {'EQUIPMENT HR STATUS':NewHRStatusBox.Selected.STATUS}
     )
     )
    )​

     

     

     

  • arahrooh Profile Picture
    6 on at

    Thank you so much, was overthinking it too much

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 413

#2
WarrenBelz Profile Picture

WarrenBelz 355 Most Valuable Professional

#3
timl Profile Picture

timl 315 Super User 2026 Season 1

Last 30 days Overall leaderboard