Hello,
We were building a news sharepoint site and we needed to migrate data from on premise sharepoint to sp online.
During the setup of the new site in sp online, we have configured a Flow that sends a notification when an item is added to a list.
To avoid Flow sending notification for alle migrated data, we turned the FLow 'off' during the migration
Once the migration was done, we turned flow back on....
and then flow started to send notifcations for all migrated items!! this was not what we expected to happen
It seems flow keeps track of changes even when the flow is deactivated.
We tried to save a copy of the flow and activated the copy
same result, it started to send notifications!
we are now trying to recreate the flow from scratch, I'll keep you posted if this is a solution, but even if this workaround works, it is not the preferred solution
How can we prevent this behaviour?
Kind Regards
Steve
Hi Michael
By recreating the flow we have a workaround that works.
I have also been thinking about putting a date condition.
But my question remains, where does flow keeps track of changes?
we are in the proces of migrating a lot of sites to sp online, so we will have to build a lot of workarounds.
Recreating is only interesting if it are 'small' flows
The condition will work but it's still a workaround that doens't feels right.
It would make more sense if flow stops keeping track of changes when the flow is deactivated
Where does flow keeps track of this?
Kind regards
Steve
Hi @SteveDARE48,
Recreating the flow should work.
Besides, please take a try to add a date condition after the trigger.
If the trigger you used is When a new item is created, then please add a condition, choose to edit in Advanced mode, copy and paste the following:
@greaterOrEquals(triggerBody()?['Created'], formatDateTime('2017/06/21','o'))
Please modify the date within the formatDateTime function to the Date after the migration.
Doing this would make the flow to work with item after the date specified.
Regards,
Michael
rpersad
16
David_MA
10
Super User 2025 Season 1
Michael E. Gernaey
8
Super User 2025 Season 1