cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Update Multiple Records in SP list once

Hello Everyone,

I am trying to update multiple records in my SP list that pass a filter  but with my code below 

it only update one of the records not all at once 

Please help 

Patch('SP LIST',
First(Filter('SP LIST',User_Req_Sharp_ID = Label9.Text&&Assigned_HOD_Sharps = 'Logged_TL-Sharps'.Text&&Line_Manager_Approval_Status = "Approve")),
{'HOD_Approval _Status':"Approved",Line_Manager_Approval_Status:"Approved"})

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Something like this should do it

UpdateIf(
   'SP LIST',
   User_Req_Sharp_ID = Label9.Text &&
   Assigned_HOD_Sharps = 'Logged_TL-Sharps'.Text &&
   Line_Manager_Approval_Status = "Approve",
   {
      'HOD_Approval _Status':"Approved",
      Line_Manager_Approval_Status:"Approved"
   }
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

View solution in original post

2 REPLIES 2
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Something like this should do it

UpdateIf(
   'SP LIST',
   User_Req_Sharp_ID = Label9.Text &&
   Assigned_HOD_Sharps = 'Logged_TL-Sharps'.Text &&
   Line_Manager_Approval_Status = "Approve",
   {
      'HOD_Approval _Status':"Approved",
      Line_Manager_Approval_Status:"Approved"
   }
)

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Anonymous
Not applicable

Thanks Boss 

It worked fine and fast !!!!! 

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,197)