Hello,
I am looking into migrating from SP 2013 to SP online, where many of our lists use SP 2010 workflows. I have migrated one list using the MS SharePoint Migration Tool. No issue there.
Afterwards I created a flow with the 'when item is created/updated' trigger. In the 'Update item' action I provide the ID from the trigger like so:
When I save an item after creating the flow, that one item is updated, which is correct. When I save a second item, that item is updated correctly. But at the same time the previous item I updated also triggers the flow. When after this I update a third item, the item I just saved along with the two previous items trigger the flow at the same time.
Note that this is a list with already existing items. The flow is not triggered for items which were updated (migrated) only before the creation of the flow.
I have just created a new item, which triggered the workflow, and all three items I updated previously also triggered the workflow. Older existing items are still unaffected.
This is a great way to solve this problem that has long plagued us.
Best Regards,
@ScottShearer thanks for the input. Coming from SP on premises with only 2010 workflows, flow on SP online with its 5 minute flow trigger was just a bad scenario to troubleshoot and from how I experienced this I did not think it would be the issue you mentioned, even though that was coming up in all of my searches. Indeed adding an extra condition into the flow solves the issue.
You are likely experiencing two issues. First, there is no trigger that fires only when an item is modified -there are triggers for when an item is created and one for when an item is created and changed.
It also sounds like you are experiencing an infinite loop. If a Flow runs when an item is modified and you update the item in that Flow, you have an infinite loop where one Flow causes the next to fire.
I wrote blog posts showing solutions to both of theses issues: https://o365scott.blog/
The two latest blog posts should show solutions to your issues.
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional