Hi All
I'm new to Power Automate, I've created a flow that allows a planner task to be created when a person field is modified in MS Lists/SharePoint using the "When an item or file is modified" function, however, it creates a new task each time the field is modified. I only want the flow to run once, this is to avoid task duplication in planner. Can anyone tell me how to achieve this?
Thanks!
Solved! Go to Solution.
Depending on how many fields you have in your task list, you could also try to see if there already is a task with the title from Sharepoint List by listing the tasks and filtering the resulting array by a field value from SP list.
Condition formula is
length(body('Filter_array'))
and Update Task Id is
items('Apply_to_each')?['Id']
If you do it like that, you're not in need of an additional column.
Hi @WayneS84
I believe that the easiest way to do this is to have a second column to record that you have processed that item. If you turn concurrency for your trigger ON and limit parallelism to 1 and also introduce a trigger condition @empty(triggerOutputs()?['body']?['NewColum']) you can prevent unnecessary triggering of your flow.
You would need to introduce an action that udpates the item column to indicate that it's been processed.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Cheers,
Damien
P.S. take a look at my new blog here and like & subscribe to my YouTube Channel thanks 😉
Depending on how many fields you have in your task list, you could also try to see if there already is a task with the title from Sharepoint List by listing the tasks and filtering the resulting array by a field value from SP list.
Condition formula is
length(body('Filter_array'))
and Update Task Id is
items('Apply_to_each')?['Id']
If you do it like that, you're not in need of an additional column.
Thanks both, the second solution works very well and also allows me to update the update rather than just have it run once. Perfect! Thanks for your help!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
Announcing a new way to share your feedback with the Power Automate Team.
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
User | Count |
---|---|
73 | |
26 | |
20 | |
15 | |
15 |
User | Count |
---|---|
146 | |
44 | |
44 | |
34 | |
32 |