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 / Catch emails where Sub...
Power Automate
Answered

Catch emails where Subject CONTAINS a phrase

(0) ShareShare
ReportReport
Posted on by 111

I understand that "When a new mail arrives V3" Subject Filter only filters an EXACT phrase.

So to get only emails with certain phrase as PART of subject line I need somehow to apply contains() condition.

But how do I do it? Where?

Also, how do I transfer the "caught" emails to another folder?

Thank you!

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

    Hello @michaelshparber ,

    the 'Subject Filter' works as contains(), it doesn't look for exact phrase. Just put the string you want to look for directly in the filter as the actions asks.

    image.png

    For moving emails there's an action 'Move email'.

  • Verified answer
    mjburley Profile Picture
    370 on at

    Sounds like filtering on the subject is not really what you want if you want to catch emails with certain phrases in the subject. Maybe a condition like this?

     

    mjburley_0-1607698338982.png

     

     

  • N3cola Profile Picture
    3 on at

    Hi, 

    picking up from the last feedback, I'd like to ask for your input as I am trying to do the same thing with the exception that I add new row in the condition with the intent to give an additional subject string as alternative to the first. 

    My objective is to move multiple emails with various subject strings, hence logically, by adding new rows with the same structure but every time with a different string content it should do the trick.

    It just does not work, no matter if I opt for 'And' or 'Or'. 

    Any idea?

    Thanks a lot.

     

  • mjburley Profile Picture
    370 on at

    Make sure you choose the Or at the top where I have shown a box, or both conditions will need to be met.

     

    mjburley_0-1610356906058.png

     

  • eliotcole Profile Picture
    4,390 Moderator on at

    I know that this is an old one, but the best way to simply handle this would be to only trigger if the subject contains a certain phrase is to use a trigger condition.

    @contains(triggerBody()?['subject'], 'your lovely phrase')

    That is of course only viable if the phrase is known.

     

    But it also gives you the option of wrapping toLower() around both parts just in case of oddities.

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
Haque Profile Picture

Haque 557

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 264 Super User 2026 Season 1

Last 30 days Overall leaderboard