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 / How to determine if a ...
Power Automate
Answered

How to determine if a file is created or modified

(0) ShareShare
ReportReport
Posted on by 5

Hi, is it possible to determine if a file is created OR modified in a flow.

I want different logic for new and modified files, but with the only trigger I found, "When an item is created or modified", both cases are handled in the same flow. So I need a way to determine if the file triggering this flow is created or if it is modified.

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

    @schoier1:

     

    I assume that you are referring to files stored in SharePoint.  If so, you can use a condition to compare the created and modified dates/times.  If they are the same, then the file is new.  If not, then the file has been modified.

     

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

     

    Scott

  • DS1060 Profile Picture
    77 on at

    This is not always true, I got a case with a 2 seconds delay in-between creation and modified on a "On creation" trigger. So my best bet is to compare the "Since version" with "1.0" as first version of the record.

  • ScottShearer Profile Picture
    25,290 Most Valuable Professional on at

    @DS1060 

    You are absolutely correct!  I wrote my post in 2018 and we've learned a lot since then.  Obviously, you need to make sure that versioning is turned on for the list.

     

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 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard