
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 Completed
When a task is completed
Zoom - 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 Completed
To give context and the Switch command, the middle section is shown below. Middle 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.
Hi. Thank you very much for posting this!