cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
tre4B
Level: Powered On

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
Community Support Team
Community Support Team

Re: Combining to outputs from Planner task lists

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
firstImage

Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.

thirdimage

Flow Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Top Kudoed Authors
Users Online
Currently online: 88 members 3,348 guests
Please welcome our newest community members: