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

Notifications

Announcements

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,270 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard