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 Automate
Answered

Mail subject filter

(0) ShareShare
ReportReport
Posted on by 21

I'm creating a flow that when an e mail arrives it posts the details (from, date, subject, body) into a teams channel, i want to exclude mails with certain words in subject like gone fishing, automatic reply and Out of office.

 

i've tried with this set up but so far not working is there a better way?

 

Capturea.JPG

Categories:
I have the same question (0)
  • Verified answer
    Brad_Groux Profile Picture
    4,556 on at

    Without the post a message step expanded we can't offer really much insight, as that is likely where the issues lie. From your screenshot, all we can see is that when an email arrives you have a double-and condition, so if the Subject doesn't contains Holiday and Gone Fishing, you'll post a message.

    Are you sure you wouldn't want the condition to be an or condition instead of and? Also, you want to likely rethink your logic. You want your action to be in the Yes step when possible, so if the subject Does not contain Holiday, then Yes, post to teams. 

    The following documentation is recommended for figuring out the best way to handle your conditions, their logic and expressions: 

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Mrabone99 Profile Picture
    21 on at

    Thanks for the reply

     

    Are you sure you wouldn't want the condition to be an or condition instead of and? 

    and there it was - i was using and instead of or tbh i hadn't even spotted the drop down 🙂 thank you so much.

     

     

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 594

#2
Valantis Profile Picture

Valantis 469

#3
11manish Profile Picture

11manish 364

Last 30 days Overall leaderboard