Hello,
I am working on a workflow in power automate that creates a planner task when a user is assigned to a document in a SharePoint document library. Triggered by 'when a file is created or modified (properties only)' with the condition that the "assigned to" value is not empty in the SP. It then creates a task and assigns it to the users specified via the dynamic content 'Assigned To". The flow works, but it creates a task every time a file property is modified and results in duplicates of the same task. How can I prevent this from happening? I.E. only make it to where the flow is triggered when the "assigned to" value is updated/prevent duplicates?
Thanks
Solved! Go to Solution.
Hello @ksod ,
please add the following expression in the Trigger Condition:
@not(equals(triggerOutputs()?['body/AssignedTo'], null))
Please replace "AssignedTo" with your unique name column.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
BR,
Marco
Hello @ksod ,
please add the following expression in the Trigger Condition:
@not(equals(triggerOutputs()?['body/AssignedTo'], null))
Please replace "AssignedTo" with your unique name column.
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
BR,
Marco
This worked! It now only creates a planner task when the 'Assigned to' value is changed. Thanks.
Hello @ksod ,
If I have answered your question, please mark the post as Solved.
If you like my response, please give it a Thumbs Up.
BR,
Marco