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 / Patching to a SharePoi...
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!

 

Categories:
  • Applications Profile Picture
    on at

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

  • CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard