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 to e...
Power Automate
Unanswered

Trigger condition to exclude specific user

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hoping someone can help me accomplish this. Here's the scenario:

Paperwork gets scanned and saved to a folder in a SharePoint document library.  I have a "When a file is created in a folder" Flow setup to send an email with the document attached when it's added to the library. The Flow works fine but I'd like to add a trigger to prevent it from running if the file is created by a specific user. Here's the Flow as is:

 

towergr_0-1621349324845.png

towergr_1-1621349380698.png

No trigger conditions are currently defined. Is there a way to do this?

 

Thanks!

Categories:
I have the same question (0)
  • tom_riha Profile Picture
    10,187 Most Valuable Professional on at

    Hello @Anonymous ,

    you can check the email of the author and trigger the flow only if it's not equal to some email address.

    @not(equals(triggerOutputs()?['body/Author/Email'], 'name@email.com'))
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Tom,

     

    Thanks for the tip. I could not find the correct formatting. I added the trigger. Now sometimes the Flow fails. Not always, but maybe 50% of the time. And even if it lists a successful run, I'm still getting the emails even if the file was created by the excluded user. Here's the error:

    towergr_1-1621368859185.png

     

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!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 77 Super User 2026 Season 1

#2
Haque Profile Picture

Haque 68

#3
Expiscornovus Profile Picture

Expiscornovus 56 Most Valuable Professional

Last 30 days Overall leaderboard