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 / 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:
  • 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

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 405 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 368

#3
WarrenBelz Profile Picture

WarrenBelz 244 Most Valuable Professional

Last 30 days Overall leaderboard