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 / Merge 2 Collections us...
Power Apps
Unanswered

Merge 2 Collections using AddColumns - Syntax help

(0) ShareShare
ReportReport
Posted on by 230

I need syntax help for merging 2 Collections.

 

I have 2 Collections (shown below) - CollectNewProjectAcct and CollectNewProjectSources.  Both collections are created when a new Account is Submitted / OnSuccess. I want to merge the CollectNewProjectSource collection into CollectNewProjectAcct collection that will then be used to Patch into a SharePoint list named ProjectSourceMatch (shown below).  I have included how I would like the merged CollectNewProjectAcct collection to look. 

 

CollectNewProjectAcct collectionCollectNewProjectAcct collection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CollectNewProjectSources collectionCollectNewProjectSources collection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

I need help on the syntax to merge the above two collections to create the Collection below, if possible.  (The Collection below was fabricated from various coding attempts)

 

 

Merged CollectNewProjectAcct collectionMerged CollectNewProjectAcct collection

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The merged CollectionNewProjectAcct collection will be used to Patch a SharePoint List named ProjectSourceMatch (shown below).  The end-in-mind is to create a record in the ProjectSourceMatch list for every combination of ProjectID&SourceID.  The ProjectSourceMatch list will have a ProjectSourceMatchID that comes from combining the ProjectID&SourceID.

(Ex: Project ID = 24, Source IDs = 5,10,20,22 --  new record IDs 245,2410,2420,2422)

 

ProjectSourceMatch - SharePoint List to Patch to.ProjectSourceMatch - SharePoint List to Patch to.

 

 

 

 

 

 

 

 

 

Any help or suggestions would be greatly appreciated.

 

Thanks, Marc...

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard