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 / 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:
  • CU18061035-1 Profile Picture
    18 Microsoft Employee 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
    CU18061035-1 Profile Picture
    18 Microsoft Employee 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!!!!

  • CU18061035-1 Profile Picture
    18 Microsoft Employee 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

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 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard