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

Notifications

Announcements

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:
I have the same question (0)
  • 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

  • Verified answer
    v-xiaochen-msft Profile Picture
    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

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 427

#2
WarrenBelz Profile Picture

WarrenBelz 360 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 336 Super User 2025 Season 2

Last 30 days Overall leaderboard