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 / Patching multiple coll...
Power Apps
Unanswered

Patching multiple collections and items not in a collection simultaneously in PowerApp

(1) ShareShare
ReportReport
Posted on by

Good day

I have an app that has multiple collections on 4 different screens as well as items that are outside of the collections (the VCP Monitoring screen below).  The collections are linked to galleries so that one can dynamically add items to each of the galleries.

This is the first page (without a collection)

janineb_5-1710766032833.png

This is the Patch function to save the "non-collection" data to the SQL database:

Patch(VCPMonitor, Defaults(VCPMonitor),
{
Capturer: CapturerTxt.Text,
CaptureDate: CaptureDate.SelectedDate,
BPName: BPNameSelectedTxt.Text,
BPNo: BPNoSelectedTxt.Text,
Frequency: FrequencyDD.SelectedText.Value,
VCPActive: NewVCPActiveRadio.Selected.Value,
BPSupport: NewBPSupportRadio.Selected.Value,
VCPAdoptDate: NewVCPAdoptDate.SelectedDate,
VCPCompleteDate: NewVCPCompleteDate.SelectedDate,
LatestVCPUpdateDate: NewLatestVCPDate.SelectedDate,
VCPUpdatePlatform: NewVCPUpdatePlatfDD.SelectedText.Value,
VCPRevision: NewVCPRevDD.Selected.Value,
RevisionDate1: NewRev1Date.SelectedDate,
RevisionDate2: NewRevDate2.SelectedDate
}
)

 

Then I have four different screens that contain a selection (2 examples below of two of the screens)

 

janineb_2-1710765714870.png

This is the Patch function to save the collection to the database:

ForAll(
    col_NewOverallPerformance,
    Patch(VCPMonitor,
    {
          ObjDate1: NewObjDate1_1.SelectedDate,
         OverallPerform1: NewOverallPerf1DD_1.SelectedText.Value,
         OverallComments1: NewOverallComments1Txt_1.Text,
         OverallPerformObjective: NewOverallObjectiveTxt.Text
    }
)
)

janineb_4-1710765897661.png

Can you please assist me with an example of a Patch function to save the multiple collections and the gallery data which is not in a collection, simultaneously to the database?  

Thank you

 

 

 

Categories:
I have the same question (0)

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
wolenberg_ Profile Picture

wolenberg_ 119 Super User 2026 Season 1

#2
WarrenBelz Profile Picture

WarrenBelz 107 Most Valuable Professional

#3
Haque Profile Picture

Haque 103

Last 30 days Overall leaderboard