web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow for When a Task i...
Power Automate
Unanswered

Flow for When a Task is Completed

(0) ShareShare
ReportReport
Posted on by 3

Here is a flow that works to move Tasks across Buckets in Planner when a task is completed.

 

Creating a separate flow triggered by When a Task is Completed is better than embedding this into another flow.

 

This post is to hopefully help anyone out there who has had trouble with figuring out how this trigger works.

 

As of May 2020 (and likely earlier), the output of this Trigger is a String, not an Array. It does not feed directly into a Control action as it use to. Therefore, List Tasks (which lists both Completed and Incomplete Tasks) is an option.

 

Basically, the idea is to List all the Tasks, then scroll through all of the Tasks and filter to Buckets (using Switch control and Bucket Ids), then to the Task Id of the array of tasks (Value Id) to compare it to the string of the completed task (Id). Then act on that Task (e.g. create a new task in a different bucket based on the Get Task Details of the Value Id task). This filtering on bucket and Task ID prevents acting on all completed tasks multiple times or in other buckets. It also prevents multiple completed tasks from confusing the trigger. 

High Level - When a Task is CompletedHigh Level - When a Task is Completed

 

 

When a task is completedWhen a task is completed

Zoom - When a Task is CompletedZoom - When a Task is Completed

 

Here is a closer view of one of the buckets. The idea is to make sure the task you are looking at is completed and that it has the Id of the task that triggered the flow. The output value is from the List Tasks action. The bucket ID can be found by "Peek Code" or Show Outputs on a Test run of List Buckets. 

 

Zoom in one - When a Task is CompletedZoom in one - When a Task is Completed

 

To give context and the Switch command, the middle section is shown below. Middle zoom in - When a Task is CompletedMiddle zoom in - When a Task is Completed

 

Hopefully, someone finds this helpful. Best wishes!

Note, we accept no responsibility for any outcomes (good or bad) that come from post. We hope it works for you as it has worked for our clients. 

Categories:
I have the same question (0)
  • Verified answer
    Mari Profile Picture
    on at
    Re: Flow for When a Task is Completed

    Hi. Thank you very much for posting this!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 462 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 456 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard