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 / How to patch two diffe...
Power Apps
Answered

How to patch two different lines in sharepoint from a button

(0) ShareShare
ReportReport
Posted on by

Hi,

I want to patch two sharepoint line from the same click of a button.  

I have an inventory sharepoint list which some part are non paint and some need to be paint. 

 

When we send part for painting, I'm able to patch quantity for 'Part_code'.  I change the "inventory" and change the "inventorygonefor paint".  The user need to specify the part that will be paint.

 

So, is it possible to do 2 patch line for the same sharepoint but for 2 differents line:

Patch(Inventory;First(Filter(Inventory; Part_code = "Part to be paint"))
;{Partgonetobepaint: QtyAlreadyGone + NewQty});;
Patch(Inventory;First(Filter(Inventory; Part_code = "Part that will be paint"))
;{Partgonetobepaint: QtyAlreadyGone + NewQty});;
 
The first Patch works well, but the second one doesn't do anything.
 
Thanks
Categories:
  • Verified answer
    v-xiaochen-msft Profile Picture
    Microsoft Employee on at

    Hi @jlarouche21 ,

     

    Please check 2 things.

    1\ Does 'First(Filter(Inventory; Part_code = "Part that will be paint"))' have a return value?

    2\ Have the value of 'QtyAlreadyGone + NewQty' changed after patching first item?

     

    Besides you can use 2 button and click 2 times to submit the data separately. Will the second one work?

     

    Best Regards,

    Wearsky

  • Verified answer
    CU17121854-0 Profile Picture
    on at

    Hi,

    1\ Does 'First(Filter(Inventory; Part_code = "Part that will be paint"))' have a return value?

    Nothing was returning from this.

    I figure it out.  Everything works fine now.

    Thanks a lot

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 248 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 192 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 135

Last 30 days Overall leaderboard