cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

Tasks to Planner only with certain categories

I use the prepared recipe from Microsoft within Flow to create a Planner Task, if an Outlook task is created.

In my case, I use Outlook tasks for both private and team tasks. I'd like to have only my categorized tasks pushed to Planner and not all tasks.

So I added an expression for categories but as soon as I choose "category" the condition is changed in a "foreach" condition and therefore a "terminate" is not valid here? how do I only push non-private tasks to Planner?

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: Tasks to Planner only with certain categories

Hi @binderth 

 

Assuming that you're only going to add one category in, you can use an expression within your condition to avoid the loop being automatically placed in. It will, by default, create a loop as the category field is passed through as an array. In the example below, I have created a task with a category of "Holiday". My condition will check the first category passed through and will branch the logic from there.

 

Category.PNG

If you have found this post useful, please give it a thumbs up. If it has answered your question, please accept it as the solution so others can benefit.

@MattWeston365





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

1 REPLY 1
Highlighted
Super User
Super User

Re: Tasks to Planner only with certain categories

Hi @binderth 

 

Assuming that you're only going to add one category in, you can use an expression within your condition to avoid the loop being automatically placed in. It will, by default, create a loop as the category field is passed through as an array. In the example below, I have created a task with a category of "Holiday". My condition will check the first category passed through and will branch the logic from there.

 

Category.PNG

If you have found this post useful, please give it a thumbs up. If it has answered your question, please accept it as the solution so others can benefit.

@MattWeston365





Did my reply help? Please give it a thumbs up.
Did I answer your question? Please mark my post as a solution!
If you liked my response, please consider giving it a thumbs up. THANKS!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

Helpful resources

Announcements
firstImage

Super User Program Update

Three Super User rank tiers have been launched!

firstImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

firstImage

Join the new Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

Top Solution Authors
Top Kudoed Authors
Users online (7,056)