cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
binderth
Level: Power Up

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!


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!


Proud to be a Flownaut!





Community Leader: Black Country PowerApps & Flow User Group

View solution in original post

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
Users Online
Currently online: 482 members 6,400 guests
Recent signins:
Please welcome our newest community members: