Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

SharePoint List Update or Patch Value

I am building an in-house inventory app that captures what items are being checkout in inventory.  So far I have 2 Sharepoint List:

Equipment - List all of the Equipment in inventory

Assignment - List all of the Equipment that have been checked out


On the Detail Screen of Assignment, I want to update the Status in the Equipment List from available to assigned and vice versa when it is checked back in. I cannot seem to get my Patch Formula to work out the way I want.  


So on the Assignement Page (See attachment), it has the list of Equipment Available for Checkout.  Once I save the assignment I want change the status of the selected equipment from avaiable to assign.  What Should I use in the PAtch Formula so that I am assigning the correct equipment with the correct status.





Community Support Team
Community Support Team

Re: SharePoint List Update or Patch Value

Hi @tduncan1,


How do you work with the Assignment list here, which control is used, and the related information about the data field?


If here you are using the EditForm control, then we could take use of the OnSuccess property of the form control to implement the Patch function.

Assuming the patch will only work on CheckOut and when Editing records, the formula under the OnSuccess property of the form control should be:

If(Value(Form1.Mode)=0 && CheckOut=true, patch(Equipment, ID=Form1.LastSubmit.Equipment.ID, {Status: "Available"}),true)

The formula above assumes you are using Form control, and the Status under Equipment list is a text field.





Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Level: Powered On

Re: SharePoint List Update or Patch Value

The Equipment List contains the status (available/Checked Out).  The Assignment Form contains everything from the Assignment SharePoint List except the Equipment ID, which is being pulled from the Equipment List.


Could you possibly convert the formula to say something like "If the form is submitted, then update the Equipment List with the this ID to status checkout"?

Helpful resources


Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors
Users Online
Currently online: 85 members 5,324 guests
Please welcome our newest community members: