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 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

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