cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cassandra
Frequent Visitor

Cannot Dynamically Update Task Status

I'm working on a flow that will create a series of Planner tasks in a new bucket to track the status of a request. The trigger is a new or modified SharePoint list item, which causes the flow to create a new task bucket with four new tasks. The SharePoint list has a yes/no field so that the bucket and new tasks are only created once.

 

I'd like to be able to dynamically mark these tasks complete as the actions are completed, rather than having the assignees go into Planner and mark them complete. My logic is to check whether the field has been filled, and if yes, mark the task "Complete." The issue is that in the second half of the flow, it errors out every time because it doesn't recognize the task ID. I've tried grabbing the dynamic ID, as well as saving that ID in SharePoint and inserting it as the ID, but neither seemed to work. Any suggestions?

 

Creating the task and saving the task ID to SharePoint:

Planner Flow1.JPG

Two methods of updating the task dynamically, neither of which seems to work:
Planner Flow2.png

 

Using either method, I get a 404 error that the task cannot be found.

1 REPLY 1
RobElliott
Super User
Super User

@cassandra if you add in a 30 second delay schedule between the Create a task and the update that should work OK. The problem  with the way you've got it at the moment is that Flow is trying to find the task ID at exactly the same time  as it's creating it which is why you get the error. A short delay allows the task to be created before Flow needs to grab the Task ID as I've done in the image below. It's not exactly your scenario but it needs to get the Task ID.

Rob
Los Gallardos

0-Delay.png

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Users online (2,406)