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 / When new Version is cr...
Power Automate
Answered

When new Version is created

(0) ShareShare
ReportReport
Posted on by 53

I want a flow which will run only when any new version of document is created in One drive for business. Can anyone help in creating this flow

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @jitendrasingh,

     

    As far as I am aware every modification to a file in OneDrive for Business will result in a new major version of the file.

     

    So, it should be sufficient to use the When a file is modified (properties only) trigger action in your flow:

    https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#when-a-file-is-modified-(properties-only)

     

    Hope this helps a bit?

  • jitendrasingh Profile Picture
    53 on at

    Hi @Expiscornovus 

     the flow you mentioned  triggers action on when file is created as well as when file is modified (New Version). I need a flow which will trigger only when file is modified and not when file is created.

  • Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @jitendrasingh,

     

    Are you sure? Isn't it just the 2.0 version of the newly created file (which is a modification?) As far as I am aware that action only triggers when a file is modified.

     

    For the create event Microsoft has a different trigger action called:

    https://docs.microsoft.com/en-us/connectors/onedriveforbusiness/#when-a-file-is-created-(properties-only)

     

  • jitendrasingh Profile Picture
    53 on at

    Hi @Expiscornovus 

     

    Yes I am sure.. I tested many times... It not only triggers for modification (version 2.0 or later) of file but also for creation of file .. You can test the same 

  • Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @jitendrasingh,

     

    I also tried reproducing this and I am unable to. For me it only triggers when modifying the file, starting from the 2.0 version of a file.

     

    Can you share some screenshots of your setup and your flow history. Let me see if I can reproduce it with your setup.

  • jitendrasingh Profile Picture
    53 on at

    Hi @Expiscornovus 

    I create similar flow but again it triggered when i created a file in it. Please find below snapshots of same

    jitendrasingh_0-1619162692936.png

    jitendrasingh_1-1619162771040.png

     

     

  • Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @jitendrasingh,

     

    Thanks for sharing your setup. Looks pretty similar to mine. 

     

    Another validation question. How are you testing? Are you uploading a file or are you creating it via the new button?

    newfile_orupload.png

     

    And if you are using the second testing scenario are you renaming the file?

     

    I was doing the same thing in my tests and also triggered the flow. Because the renaming action will create a second version of the file, which makes it seem like it is triggering for a newly created file.

     

    versionhistoryoffile.png

     

     

  • jitendrasingh Profile Picture
    53 on at

    Hi @Expiscornovus 

    I am uploading the file with same name & it is updated as new version.

    The flow triggers when new file is uploaded as well as when new version of same file is uploaded.

    I want flow to run only when new version is uploaded (Version 2.0 onwards) and not on Version 1.0 

     

  • Expiscornovus Profile Picture
    33,970 Most Valuable Professional on at

    Hi @jitendrasingh,

     

    Thanks for sharing. With an upload I am also able to reproduce this behaviour.

     

    I think we can use the Etag and use the second part of that to retrieve at the version. We can use a greaterorequals to make sure it is at least 2.0.

     

    Can you add the following expression as a trigger condition to your action?

    @greaterOrEquals(replace(split(triggerOutputs()?['body/ETag'], ',')[1], '"', ''), '2')

     

  • jitendrasingh Profile Picture
    53 on at

    Hi @Expiscornovus 

    Thanks... I am new to Power automate,Can you share screenshot of the solution you suggested so that i can reproduce same in my environment

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 252 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard