You should create a flow like this
1. Add Trigger for Planner When a task is Completed
2. Use the Update Task to change the bucket (do not use Update Task Details). Update Task specifically is what you need
--Now here is where there is a little bit of protentional work though
To be able to change the Bucket, you need to have the new buckets Id there are 2 ways to get this.
I. Create an environment variable that you name like ToDoBucketId and then put the GUID for the bucket there and from your Flow you can use the Environment Variable.
You could store it in a sharepoint list, flat file or anything else as long as a connector exists that can grab the data.
II. In your Flow you would need to find the bucket it which would cause me to change the flow to this
1. Trigger for Planner When a task is Completed
2. Use List Buckets
3. add an apply to each with the Input from #2
--Inside
----Condition
-------Check if the current iteration of the List Buckets Name is equal to To do 2 (which I see in the picture)
---------if No (side) do nothing
---------if Yes (side)
---------------Use the Update Task, using the list buckets current loop's GUID as the input to the bucket.
And bingo you changed it.
P.S. you could also skip the Apply to each and instead using a ParseJon, with the Schema being like this. And then get the ID from there. I would suggest... to start, just use the Apply to eacn
[
{
"@odata.etag": "W/\"<redacted>",
"name": "Privacy",
"planId": "<redacted>",
"orderHint": "85857535",
"id": "<redacted>"
},
{
"@odata.etag": "W/\"<redacted>",
"name": "Security",
"planId": "<redacted>",
"orderHint": "8585755t",
"id": "<redacted>"
}
]
Let me know if you have any more questions.
If this answers your question please mark as resolved.
If you try to build it and have issues please open another case to get help for directly helping you fix it.