Notifications
Announcements
I’ve been stuck on this for the past seven days and would really appreciate your help.
I need to update multiple rows in a SQL table directly from a Power Apps gallery. Each gallery item contains three ComboBox controls and three TextInput controls. I’m looking for the correct approach (and formula) to save all edited items in the gallery back to SQL in one go.
It looks like the logic is correct. However, when using a SQL data source, make sure the table has a primary column. otherwise, Power Apps won’t support write operations like Patch/update.
ForAll( colAllChannel As r, Patch( 'GPS.sql_channel', Defaults('GPS.sql_channel'), { 'Textinput 1': Value(r.'Textinput 1'), 'Textinput 2':Value(r.'Textinput 2') } ) )
ForAll( colAllChannel As r, Patch( 'GPS.sql_channel', LookUp('GPS.sql_channel', ID = r.ID), { 'Textinput 1': Value(r.'Textinput 1'), 'Textinput 2':Value(r.'Textinput 2') } ) )
If your SQL column name contains spaces, make sure to wrap it in single quotes while patching.
If the above solution still doesn’t work, please share a screenshot of your collection output, your SQL table structure, and the exact error message you are getting. That information will help us troubleshoot the issue further and give you a more accurate solution.
Hope this helps 👍
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Kalathiya 401
WarrenBelz 334 Most Valuable Professional
MS.Ragavendar 325 Super User 2025 Season 2