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 / Mass update of SQL tab...
Power Apps
Unanswered

Mass update of SQL table based on data in a gallery from a view

(0) ShareShare
ReportReport
Posted on by 294

I have a gallery with data from a SQL View (which summarizes data by Job from a Job table) loaded in a collection.

The user clicks checkboxes to flag certain rows in the gallery. (I apply these checkbox values to the collection behind the gallery).

I then want to update all the SQL records that have the job number of each selected checkbox. For each summary record in the gallery, there can be many records in the SQL table with the same job number that should be updated based on the flag for that record/job.

What is the best way to do this? I am puzzled. I can put a ForAll with a ForAll, I guess, but that is highly inefficient and slow. There must be a better way.

 

Example:

Gallery displays (from collection that is loaded from a SQL View):

Job 11

Job 12

Job13

...

 

In SQL table, each Job may have 5, 10 or more records that I then need to set a flag field, based on the user setting the flag in the gallery.

Categories:

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard