Skip to main content

Notifications

Power Apps - Building 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
    CU17121854-0 Profile Picture
    CU17121854-0 on at
    Re: How to patch two different lines in sharepoint from a button

    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
    Re: How to patch two different lines in sharepoint from a button

    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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard