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 / Patching all input edi...
Power Apps
Unanswered

Patching all input edits to all gallery items (Dataverse table) with button outside the gallery

(0) ShareShare
ReportReport
Posted on by 727 Super User 2025 Season 2
Hello!
 
Fairly new to Power Apps and I'm sure the solution involves Patching, maybe a For All and perhaps a temporary collection but I can't seem to put this all together after watching several videos and reading many posts here and elsewhere.
I want a button outside the gallery to save edits made in any input column of the gallery on any row. See screen shot of app.
I am able to Save/patch individual row edits with the following patch formula.
 
Appreciate any guidance or reference.
Thank you!
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    Akash1ve Profile Picture
    112 on at
    Considering your gallery name as Gallery1 . Can you try something like below?
    ForAll(
        Gallery1.AllItems,
        Patch(
            'Table1S',
            LookUp('Table1S', ID = ThisItem.ID),
            {
                'Par Level': Value(txtParLevelEdit.Text),
                'OnH1': txtOnHandAmt1Edit.Text,
                'QTY1': txtQty1Edit.Text,
                'OnH2': txtOnHandAmt2Edit.Text,
                'QTY2': txtQty2Edit.Text,
                'OnH3': txtOnHandAmt3Edit.Text,
                'QTY3': txtQty3Edit.Text,
                'OnH4': txtOnHandAmt4Edit.Text,
                'QTY4': txtQty4Edit.Text
            }
        )
    );
    Notify("saved!", NotificationType.Success,2000);
  • Cgangweg01 Profile Picture
    727 Super User 2025 Season 2 on at
     
    Thanks for the quick reply.
     
    I used your suggestion, and it is not recognizing ID = ThisItem.ID.
    I think ID may work with SharePoint lists. My table is in Dataverse.
     
    Any idea how to adjust?
     
     
  • Cgangweg01 Profile Picture
    727 Super User 2025 Season 2 on at
    Hi again @Akash1ve 
     
    I got the formula to save with this change ... but it didn't update the row that I edited and instead updated the first row in the table by clearing the values.
    Strange result.
     
    Any suggestion now?
     
     
  • Verified answer
    Cgangweg01 Profile Picture
    727 Super User 2025 Season 2 on at
    Hi!
     
    Not sure why this was so hard to find.
    This worked like a charm ...

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard