web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Trigger conditions for...
Power Automate
Answered

Trigger conditions for when a new email arrives in shared mailbox NOT with certain subjects

(0) ShareShare
ReportReport
Posted on by 195

Hi everyone,

 

I'm attempted to use 'Trigger conditions' under setting for trigger 'When a new email arrives in a shared mailbox'.

 

I am having no luck in constructing a valid expression to not be triggered by the following 3 subject lines in contained in an email:

  1. 'Digitisation Complete'
  2. 'Data Quality Form'
  3. 'Additional Information for’

 

I have tried a few expressions including the following and would be grateful for any assistance as I am getting no where!

 

@Anonymous(contains(triggerOutputs()?['body/subject'], 'Digitisation Complete'),false),contains(triggerOutputs()?['body/subject'], 'Data Quality Form’),false),contains(triggerOutputs()?['body/subject'], 'Additional Information for’),false))

 

 

@And(equals(triggerOutputs()?['body/subject'],'Digitisation Complete'),false),equals(triggerOutputs()?['body/subject'],'Data Quality Form '),false),equals(triggerOutputs()?['body/subject'],'Additional Information for’),false))

 

roxy1_0-1669016105392.png

 

Categories:
I have the same question (0)
  • Verified answer
    grantjenkins Profile Picture
    11,063 Moderator on at

    Can you try something like the following:

     

    @And(not(contains(triggerOutputs()?['body/subject'], 'Digitisation Complete')),not(contains(triggerOutputs()?['body/subject'], 'Data Quality Form')),not(contains(triggerOutputs()?['body/subject'], 'Additional Information for')))

     

    Also noticed you had a couple of funny closing single quotes after Data Quality Form and Additional Information for which might have been causing issues.

  • roxy1 Profile Picture
    195 on at

    Hi @grantjenkins - you've solved it again! Thank you

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard