cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tre4B
Advocate IV
Advocate IV

Combining to outputs from Planner task lists

Hi All,

 

I have two planner lists that I wish to compine.  Both are coming from the same call to planner, with each pointed at a different list.

 

It feels like I should be able to join with some form of Union (preferably only keeping unique items as there could be duplicates).  I cannot figure out how though and right now my best bet is convoluted code that iterates the lists adding them all into an array.

 

Feels like there should be a Join function somewhere, I just can't figure out how.

 

Can anyone point me in the right direction?

1 REPLY 1
v-yuazh-msft
Community Support
Community Support

Hi @ tre4B,

 

 

Do you want to combine all outputs from Planner task lists or all Title of Planner task lists?

 

If you would combine all Title of Planner task lists, please refer to screenshot below to create the flow:

Capture.PNG

 

 

The expression in the value field of the append to array variable as below:

items('Apply_to_each')?['Title']
The expression in the Compose field as below:
union(variables('tasks'),variables('tasks'))

I have four planner tasks as below:

Capture.PNG

 

The flow would run successfully to combine the title of the task as below:

Capture.PNG

 

If you would like to combine all outputs from Planner task lists, I'm afraid you couldn't only keep unique items, the expression union() wouldn't keep unique items

 

You could refer to screenshot below to create the flow:

Capture.PNG

 

The flow would run successfully to combine all tasks as below:

Capture.PNG

Please let me know if your problem could be solved.

 

Regards,
Alice Zhang

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

Power Platform release plan for the 2022 release wave 2 describes all new features releasing from October 2022 through March 2023.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (4,811)