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
thirdimage

Power Automate Community User Group Member Badge

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

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

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 Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,998)