Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Answered

Condition - check if flow already ran today

(0) ShareShare
ReportReport
Posted on by

Hi all,


I have a flow which triggers on "When a file is created or modified in a folder" for a sharepoint file and will post a message to teams to say the file has been updated.  I've found that due to the autosave on word online (editing via teams) that the flow triggers multiple times whilst it is being edited.  How can I add a condition or something to ensure it is only triggered once a day?

 

Many thanks

Paul

 

  • Verified answer
    ScottShearer Profile Picture
    25,208 Most Valuable Professional on at
    Re: Condition - check if flow already ran today

    @Alc:

     

    Here are two options for you:

    1. Create a Flow using a recurrence trigger that runs once a day. 
      1. User a Get Files action and loop through each document
      2. If the last modified time is within the last 24 hours then post a message to Teams.
      3. Alternatively, you could use an ODATA filter in the Get Files action to return only those files that meet your criteria
    2. Add a column a date/time column to the library. 
      1. Initially, store the last update date/time in the column (set when document is created)
      2. When a document is updated, compare the value of the new Date/Time column with the modified column
        1. If difference is less than 24 hours, do nothing
        2. If difference is greater than 24 hours, then
          1. Set new date time column to value of modified column
          2. Post message to Teams

    If this addresses your issue, please mark your Post as Solved.

     

    Scott

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,609 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,946 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow