Skip to main content

Notifications

Community site session details

Community site session details

Session Id : G4sfj8QqV+VDpEt3usrbHo
Power Automate - General Discussion
Unanswered

how to avoid trigger during and after migration of sharepoint items

Like (0) ShareShare
ReportReport
Posted on 19 Jun 2017 14:12:08 by 4

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

 

Categories:
  • SteveDARE48 Profile Picture
    4 on 20 Jun 2017 at 07:54:50
    Re: how to avoid trigger during and after migration of sharepoint items

    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

  • v-micsh-msft Profile Picture
    on 20 Jun 2017 at 06:25:41
    Re: how to avoid trigger during and after migration of sharepoint items

    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

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - General Discussion

#1
rpersad Profile Picture

rpersad 16

#2
David_MA Profile Picture

David_MA 10 Super User 2025 Season 1

#3
Michael E. Gernaey Profile Picture

Michael E. Gernaey 8 Super User 2025 Season 1

Overall leaderboard
Loading started