
Announcements
Hello
I am very new to power automate, and have only managed to get some basic flows to work.
My current aims are to make a flow that will copy a task when its marked as completed into another bucket.
Eg
Task is generated in "To do" bucket (task creator will assign their selves to the task and operators)
Once the Task is completed the Task is marked as completed
Power automate kicks in and generates a copy of the task into the data check bucket > with the task name, Notes and the task creator being assigned to it + new start and to do dates.
I have generated a flow for this, which works however it will do it for every task that is completed, so it ends up making many tasks in the data check bucket. I have attempted to generate a flow with a condition so it only runs if its from a specific bucket.
However when ever it runs it fails giving the following 2 errors
What am i doing wrong?
thanks
joe
Hi @JoeG2,
I would use a different approach because you already know what the task is, because of the When a task is completed trigger action output. It shouldn't be necessary to retrieve the task again with the get task action.
I have created an example below. You could use a trigger condition on the first action and check for the BucketId. This way you don't have to use the condition and the get task actions.
1. Add a trigger condition to the When a task is completed which checks if the bucket is equal to ToDo. Replace the id of the expression with the id of your ToDo bucket. You can find this in the setting of the trigger action.
@equals(triggerOutputs()?['body/bucketId'], 'dfmWRTfguEiZrAjILHwo1ZgADiE6')
2. Move the create task and update task directly after that trigger. Use the dynamic values from the trigger action for the different fields and assign the Data Check Bucket value.
Let us know if this helps.