cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KarlNixon
Helper II
Helper II

Combine 2 Collections into 1

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

1 ACCEPTED SOLUTION

Accepted Solutions
eka24
Super User
Super User

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.

View solution in original post

3 REPLIES 3
KarlNixon
Helper II
Helper II

@ShaneYoung any thoughts?

eka24
Super User
Super User

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.

View solution in original post

Laxmikant_Alle
Frequent Visitor

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

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,169)