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.
Solved! Go to Solution.
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.
Best regards,
Mabel
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.
Best regards,
Mabel