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 condition if f...
Power Automate
Unanswered

trigger condition if file content changed ONLY

(0) ShareShare
ReportReport
Posted on by 15

Hi,

I am looking for a solution on how to trigger a flow ONLY if file has been edited in SP Document library.

triggering (When Item or File modified) is also trigger if other metadata columns changes! what is the trigger condition for file content changes! 

 

Thanks

 

 

 

 

Categories:
I have the same question (0)
  • Manish Solanki Profile Picture
    15,167 Moderator on at

    Hi @Yahia_khalid 

     

    You can add a trigger condition that will control the execution of the flow. In trigger condition, we will check the file extension and it is found to be .pdf then only allow the flow to execute. The flow will not be executed for other file extensions. 

     

    Here are the steps to add trigger condition:

    First, click on menu (...) and select 'Settings' option

    ManishSolanki_0-1689355265714.png

    Next, add the trigger condition for validating the file extension and finally click on Done button.

    ManishSolanki_1-1689355397129.png

    Expression used for validation file extension is:

    @endswith(triggerOutputs()?['body/{FilenameWithExtension}'],'.pdf')

     

    If this helps & solves your problem, please remember to give a 👍 and accept my solution as it will help others in the future.

     

    Thanks

  • Yahia_khalid Profile Picture
    15 on at

    Thanks for response, I think I didn't explain my issue well,  what I need is only trigger action if file has been edited, not other metadata columns in document library, so if the file content updated the trigger kicks off. 

     

     

  • Rhiassuring Profile Picture
    8,692 Moderator on at

    Hi there, 

     

    If you're looking for a specific value (ie, when it changes to "Signed", or if "Signed" changes to "Yes", something like that) you can use this in your trigger condition:

    @equals(triggerBody()?['Column name']?['Value'],'Value')

  • Yahia_khalid Profile Picture
    15 on at

    Thanks for the response, No, I need to trigger the flow ONLY if the file content changed. which means trigger only if someone open the file and edit it. 

     

  • TanyaMc365 Profile Picture
    63 on at

    Is there something specific inside the file that is being edited that you could key off of perhaps? Without a way to compare the file before and after edits there is no data point for power automate to key off of.

  • Yahia_khalid Profile Picture
    15 on at
    Hi, actually the files are a pdf files and user open the pdf file and put his signature in it. that time I need to know if he already signed the file or not. so the process can get forward.
  • TanyaMc365 Profile Picture
    63 on at

    I do this using a power app ...that is how they upload the signed version, which over writes the original and sends email with app deep link to next signer or back to requestor. Uses flows and lists and status columns etc.

  • SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    I think you should be using Docusign or AdobeSign for a use case like this.

     

  • TanyaMc365 Profile Picture
    63 on at

    If one had the funds for licenses that would be the better choice but my solution works without additional licenses. Deep links, parameters , and variables are free!

  • l4u124 Profile Picture
    4 on at

    Hi there! This is actually what I needed 🙂 Any idea on how to modify your line above so it triggers if it's an xlsx or xls (legacy) file type?

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 573

#2
Valantis Profile Picture

Valantis 407

#3
11manish Profile Picture

11manish 387

Last 30 days Overall leaderboard