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 / Trigger flow when a sp...
Power Automate
Answered

Trigger flow when a specific file is modified

(0) ShareShare
ReportReport
Posted on by 1,089

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

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

    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.

  • frixel Profile Picture
    1,089 on at

    Hi @Expiscornovus 

     

    Yes, i want to filter for one specific file.

  • Verified answer
    Expiscornovus Profile Picture
    33,863 Most Valuable Professional on at

    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
    1,089 on at

    @Expiscornovus 
    Thanks works fine for me.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

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

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Nevermind. I have it working. 

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    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']

     

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 470

#2
Haque Profile Picture

Haque 411

#3
David_MA Profile Picture

David_MA 337 Super User 2026 Season 1

Last 30 days Overall leaderboard