web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Condition - check if f...
Power Automate
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

 

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard