Skip to main content

Notifications

Power Automate - General Discussion
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

 

 

 

 

  • ManishSolanki Profile Picture
    ManishSolanki 15,075 on at
    Re: trigger condition if file content changed ONLY

    Hi @l4u124 

     

    Pls try this expression:

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

     

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

     

    Thanks

  • l4u124 Profile Picture
    l4u124 4 on at
    Re: trigger condition if file content changed ONLY

    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?

  • Tanya70 Profile Picture
    Tanya70 63 on at
    Re: trigger condition if file content changed ONLY

    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!

  • SudeepGhatakNZ Profile Picture
    SudeepGhatakNZ 14,231 on at
    Re: trigger condition if file content changed ONLY

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

     

  • Tanya70 Profile Picture
    Tanya70 63 on at
    Re: trigger condition if file content changed ONLY

    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.

  • Yahia_khalid Profile Picture
    Yahia_khalid 15 on at
    Re: trigger condition if file content changed ONLY
    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.
  • Tanya70 Profile Picture
    Tanya70 63 on at
    Re: trigger condition if file content changed ONLY

    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
    Yahia_khalid 15 on at
    Re: trigger condition if file content changed ONLY

    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. 

     

  • Rhiassuring Profile Picture
    Rhiassuring 8,688 on at
    Re: trigger condition if file content changed ONLY

    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
    Yahia_khalid 15 on at
    Re: trigger condition if file content changed ONLY

    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. 

     

     

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

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

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,636

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,942

Leaderboard