cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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
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
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: 188 members 4,661 guests
Please welcome our newest community members: