web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Patching to a SharePoint List but Filtering to a Specific Item and Calculating Values, Inventory Management

(0) ShareShare
ReportReport
Posted on by

I'm trying to use PowerApps to manage my inventory for product ordering, delivery, and restocking, but I'm not sure how to accomplish this in PowerApps.

I have two SharePoint lists I use, one is for pulling in the order information ("Order Information") and the other is referencing the inventory overall ("Inventory Information").

At the moment I have a form for submitting the status change for an order to the order information SP list, but I need it to also update the inventory overall list with the new amount once the item is delivered.

 

I need it to filter the inventory overall list to match only the item that it being updated, and then either subtract (delivery) or add (restock) to that item. Does anyone know how I can manage this?

 

Here are some screenshots as well:

 

Order information list:

Applications_0-1660155247573.png

 

 

Inventory overall list:

Applications_1-1660155247550.png

 

 

The PowerApp:

Applications_2-1660155247393.png

 

 

So I need the formula to filter the 2nd list based on if the text in the ordered item of the PowerApp screen matches and then update the 2nd lists quantities. Hope this helps provide clarity, thanks!

 

I have the same question (0)
  • Applications Profile Picture
    on at
    Re: Patching to a SharePoint List but Filtering to a Specific Item and Calculating Values, Inventory Management

    Anyone have any thoughts on how to achieve this? Still looking for a response. Thank you!

  • CU-18081211-6 Profile Picture
    9,266 Moderator on at
    Re: Patching to a SharePoint List but Filtering to a Specific Item and Calculating Values, Inventory Management

    @Applications ,

    From what I understand, you use a form in Edit FormMode with DataSource set on "Order Information" list to gather and save infos about an order. 

    After that, you need to use the OnSuccess() property of the form. 

    You can update the data using something like:

    With(
    {
     item:Lookup('Inventory Information', ItemName = YourForm.LastSubmit.OrderedItem)
    },
     Patch(
     'Inventory Information',
     item,
     {
     Stock:item.Stock-YourForm.LastSubmit.Quantity
     }
    )

     I cannot find where you keep info about the type of operation restock-delivery and also I can't see the name of your columns.

     

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 632 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 386 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 245 Moderator

Last 30 days Overall leaderboard