Announcements
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.
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} ) ) )​
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 483
WarrenBelz 399 Most Valuable Professional
11manish 327