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

Continuing Flow after Completing 3 Tasks

I have a Flow that assigns multiple Tasks to different people on my team in Planner when an event gets created on a specific calendar. I'm trying to figure out how to set up the Flow so that it will create 3 Tasks in Planner, then create another 2 when those 3 are all completed, and then another set once those 2 are completed, etc. so that the Tasks are doled out throughout the process instead of creating all 14 Tasks at once.

 

Here's a picture of how I imagine it working, but it seems like on the Condition step, it always pulls "0" for Percent Complete...

 

I'm still very new to all this and any help would be appreciated. Thank you.

 

Annotation 2019-07-29 164512.jpg

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @Whobrey ,

 

From your description, it seems that you want to create tasks in turn when the previous tasks are completed.

 

Please check if the following workaround will be working for you.

 

After the trigger When a new event is created.

 

Add Planner Create a task action to create the first task. If you need more, just add several other Create a task action.

 

Then add a Do until loop, within the loop, add action Get a task, and Get a task2 to each task you created previously. Then configure the condition using the following code:

@and(equals(body('Get_a_task')?['percentComplete'], 100),equals(body('Get_a_task_2')?['percentComplete'], 100))

Note: when working with do until loop, you need to select value from actions within the loop.

 

Under the first loop, create more tasks, and add do until loop with the same steps and conditions.

 

An image for your reference.

1.PNG

 

Best regards,

Mabel        

  

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yamao-msft
Community Support
Community Support

Hi @Whobrey ,

 

From your description, it seems that you want to create tasks in turn when the previous tasks are completed.

 

Please check if the following workaround will be working for you.

 

After the trigger When a new event is created.

 

Add Planner Create a task action to create the first task. If you need more, just add several other Create a task action.

 

Then add a Do until loop, within the loop, add action Get a task, and Get a task2 to each task you created previously. Then configure the condition using the following code:

@and(equals(body('Get_a_task')?['percentComplete'], 100),equals(body('Get_a_task_2')?['percentComplete'], 100))

Note: when working with do until loop, you need to select value from actions within the loop.

 

Under the first loop, create more tasks, and add do until loop with the same steps and conditions.

 

An image for your reference.

1.PNG

 

Best regards,

Mabel        

  

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (6,187)