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

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 (1)
  • tom_riha Profile Picture
    10,185 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,363 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

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

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard