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 / Patch Multiple Rows
Power Apps
Answered

Patch Multiple Rows

(0) ShareShare
ReportReport
Posted on by 372

Hi, 

I have this data

PO NumberJoint NumberDetailName
12g-1fsgs 
12g-1fdfe 
12g-2fesg 
12g-3fwtw 

 

I used this formula in gallery (which is has different datasource, not 'Welder Log'):

Patch(
'WELDER LOG',
First(
Filter(
'WELDER LOG',
'Joint Number' = ThisItem.'Joint Number',
'PO Number' = POno.Text
)
),
{Name: Welder.Selected}
)

 

But it just for 1 rows, I want rows who has same Joint Number & PO Number like this:

PO NumberJoint NumberDetailName
12g-1fsgs 
12g-1fdfe 
12g-2fesgdeni
12g-3fwtwdeni

 

Can anyone help me? thankyou!

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hello @firda59 

     

    Please try this code:

     

    ForAll( Filter( 'WELDER LOG', 'Joint Number' = ThisItem.'Joint Number', 'PO Number' = POno.Text ), Patch( 'WELDER LOG', ThisRecord, {Name: Welder.Selected} ) )

     

    Remember to replace 'WELDER LOG', 'Joint Number', 'PO Number', POno.Text, and Welder.Selected with the actual names of your data source and controls if they are different.

     

    If it helped let me know and accept as solution and give it a thumbs up so we can help others 😉

     

    greetings

  • firda59 Profile Picture
    372 on at

    Hi @mmbr1606 ,

     

    I got this error message:

    firda59_0-1701243850166.png

     

    Is there any solution?

  • Verified answer
    mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @firda59 

     

    try to create a collection first like this:

     

    ClearCollect( ToUpdateCollection, Filter( 'WELDER LOG', 'Joint Number' = ThisItem.'Joint Number', 'PO Number' = POno.Text ) ); ForAll( ToUpdateCollection, Patch( 'WELDER LOG', LookUp('WELDER LOG', ID = ThisRecord.ID), {Name: Welder.Selected} ) )

  • firda59 Profile Picture
    372 on at

    @mmbr1606 

     

    Thankyouuu!!!!

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    you are welcome

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
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard