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 / Combine 2 Collections ...
Power Apps
Answered

Combine 2 Collections into 1

(0) ShareShare
ReportReport
Posted on by 164

Looking for some help to combine two collections into one.

One collection holds Timesheets records, the other Leave records - combined collection has both Timesheet and Leave records

 

KarlNixon_0-1634890156513.png

 

I thought a ForAll and Collect function would be the answer but can't work out the right syntax.

 

Any assistance greatly appreciated.

 

 

Karl

Categories:
I have the same question (0)
  • KarlNixon Profile Picture
    164 on at

    @ShaneYoung any thoughts?

  • Verified answer
    eka24 Profile Picture
    20,923 on at

    Try:

    ClearCollect(Colcombined,TimeSheet,
    RenameColumns(LeaveCollection,"Leave Type","Type"))
    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
  • Laxmikant_Alle Profile Picture
    79 on at

    Hello @KarlNixon,

    Greeting of the day,

     

    As per your requirement, you can use the following function to combine the two collections into one collection.

     

    ClearCollection(CombinedCollection, TimesheetCollection, LeaveCollection);

     

    I hope this is helpful for you.

     

    Thanks & Regards,

    Laxmikant_Alle

  • DougY1 Profile Picture
    6 on at

    Excellent. Worked first time.

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