Skip to main content
Community site session details

Community site session details

Session Id : QMIhwz6ELLensLguPZhw2W
Power Automate - Building Flows
Answered

Trigger flow when a specific file is modified

Like (0) ShareShare
ReportReport
Posted on 21 Apr 2021 10:46:12 by 901

Hi all,

 

I will make a Flow for a specific file in a folder.

The file is on OneDrive and i read that the best i to do that with the trigger function.

 

I dont get it working, what goes wrong with this?

 

 2.png

  • Community Power Platform Member Profile Picture
    on 16 Feb 2023 at 17:07:40
    Re: Trigger flow when a specific file is modified

    I created a new flow with this Trigger Condition and it works:

        ATSIGNequals(triggerOutputs()?['body/{FilenameWithExtension}'], 'Company Meeting Agenda - ABC.xlsx')

    Split On (on):

        ATSIGNtriggerOutputs()?['body/value']

     

  • Community Power Platform Member Profile Picture
    on 15 Feb 2023 at 19:54:33
    Re: Trigger flow when a specific file is modified

    Nevermind. I have it working. 

  • Community Power Platform Member Profile Picture
    on 15 Feb 2023 at 19:49:51
    Re: Trigger flow when a specific file is modified

    Would there be any difference in the "Trigger Condition" if the file is located in SharePoint? 

  • frixel Profile Picture
    901 on 21 Apr 2021 at 15:32:27
    Re: Trigger flow when a specific file is modified

    @Expiscornovus 
    Thanks works fine for me.

  • Verified answer
    Expiscornovus Profile Picture
    32,182 Most Valuable Professional on 21 Apr 2021 at 14:50:51
    Re: Trigger flow when a specific file is modified

    Hi @frixel,

     

    In that case you should be able to use the exact file name with an equals instead:

     

    @equals(triggerOutputs()?['body/Name'], 'filename.csv')

     

     

  • frixel Profile Picture
    901 on 21 Apr 2021 at 13:10:01
    Re: Trigger flow when a specific file is modified

    Hi @Expiscornovus 

     

    Yes, i want to filter for one specific file.

  • Expiscornovus Profile Picture
    32,182 Most Valuable Professional on 21 Apr 2021 at 12:36:15
    Re: Trigger flow when a specific file is modified

    Hi @frixel,


    Do you want to filter for one specific file, or for all files which are of type .csv? Otherwise you can use the exact name of the file.

     

    And as far as I am aware on OneDrive for Business the property is Name instead of FilenameWithExtension. Can you try and use this expression:

    @endswith(triggerOutputs()?['body/Name'], '.csv')

     

    And I think you don't need to first row where you a comparing the created date with the modified date.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete