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 / Condition on Flow emai...
Power Automate
Unanswered

Condition on Flow email subject

(0) ShareShare
ReportReport
Posted on by 21

Hello,

I'm trying to build an email flow with some conditions on the subject, this is, if the subject contains AAA or BBB, or CCC, for example then... execute some action

 

In advanced mode something like this:

 

@contains(triggerBody()?['Subject'], 'AAA') or @contains(triggerBody()?['Subject'], 'BBB')

 

But I think my approach is completly wrong and I can't get this working.

 

Is this possible?

 

Thank's in advance.

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @josecardoso,

     

    Could you please share a screenshot of your flow's configuration?

     

    I think there is something wrong with the formula that you filled within Condition box, I have made a test on my side and please take a try with the following workaround:29.JPG

    Within Condition box, click "Edit in advanced mode", type the following formula:

    @or(contains(triggerBody()?['Subject'], 'AAA'),contains(triggerBody()?['Subject'], 'BBB'),contains(triggerBody()?['Subject'], 'CCC'))

    The flow works successfully as below:30.JPG

    More details about using expression in flow actions, please check the following article:

    https://flow.microsoft.com/en-us/blog/use-expressions-in-actions/

     

    Best regards,

    kris

     

     

  • Hamid Profile Picture
    108 on at

    Hi all

    I created a flow to take actions only if the emails subjects are specific words, but it seems it runs the flow for any email subjects. I used subject is "equal to" but that did not filter email subject neither. Based on what I read from other posts that should work. But I dont know where can be possible problem. Thank you if you can help me with that

    Untitled3.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

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 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard