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 all records from...
Power Apps
Answered

Patch all records from a gallery to the same column of SP

(0) ShareShare
ReportReport
Posted on by 12

Hi All,

I am hoping someone can show me the way to patch a calculated label of a gallery to its corresponds row of the SP 

I have a gallery in my app (Gallery1) that is showing a Sharepoint list (LINEUP); in this gallery I have a Calculated label (Label46) that calculate the days ahead of the vessel arrival, what I need is Patch all calculated records of this gallery label to this corresponds row of the sharepoint list (column "DAYSTO") .
I have read about using the control "forall" but I am not able to make it work.

 

111.png

 

Sharepoint list where I need to patch each record

 

1112.png

 

 

Hope you can give me a hand with it!

 

Thank you

 

 

Categories:
  • mahoneypat Profile Picture
    1,720 on at
  • fcastroChile Profile Picture
    12 on at

    I have read  that page but do not answer my query. 

     

    Thank you anyway

  • Verified answer
    BlessedCobba Profile Picture
    459 Super User 2024 Season 1 on at

    Hi @fcastroChile
    can you please paste in what you have tried?

    forAll loop is the right answer, to achieve your outcome
    The tricky part is the lookup to find the correct row to patch the data it into, by the looks of the example you might be able to match something like the name and eta to find the right row in the datasource, then patch the days to gallery label into that column and row

    ForAll(Gallery1,
    //repeats for all rows in the gallery
     Patch(
     LINEUP,
    //Patch to data source
     LookUp(LINEUP, 'Nave' = (GalleryLabel) && 'ETA' = (GalleryLable),
    //Use lookup to match Nave & ETA from the gallery with row in datasource 
     {Daysto: (galleryLabel}
    //Update daysto column with data from the gallery
     )
    )



     

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard