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 / Patch a Collection wit...
Power Apps
Unanswered

Patch a Collection with Collection

(0) ShareShare
ReportReport
Posted on by 1,855

Hello,

Can anyone help me figure out how to Patch values from one collection into another collection?

 

Scenario:

  • User selects multiple items
  • All items put into a collection
  • I then want to Patch that Collection into another Collection

I'm confused on how to use Patch and Defaults to add a new record to the 2nd Collection. I've tried:

ForAll(col1st,
 Patch(col2nd,
 Defaults(col2nd),
 {
 testNum: col1st.testNum,
 notes: "Why is this confusing me?"
 }
);

Thank you

Categories:
I have the same question (0)
  • Meneghino Profile Picture
    6,949 on at

    Try:

    Collect(col1st, col2nd)
  • seadude Profile Picture
    1,855 on at
    Thanks for the swift reply!

    Col2nd has more columns than col1st. Will this matter?

    Also, do the column names to patch in each need to be named exactly the same?
  • Meneghino Profile Picture
    6,949 on at

    I think that any column names in Col2nd that do not exist in Col1st will be added, so the result will be a merge of the two sets of columns.  You need to match the names exactly (probably also capitalisation) in order for the columns to considered the same.

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard