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 / syntax of Mail filter ...
Power Automate
Answered

syntax of Mail filter subject query

(0) ShareShare
ReportReport
Posted on by 19

I am using the When a new email arrives in a shared mailbox action and want to filter out emails with the specific keyword in the subject. I tried Subject filter field but whatever I put there the action will work for any email subject. 

I want to filter only those email. Email Subject always starts with BE 

BE21080245-20210813A-OSL-Final.

BE21080323-20210818A-Final.

BE21080244-20210812B-OSL-Final.

BE21080240-20210812C-OSL-Au Results

Can anyone help me how to filter those emails.

 

@eric-cheng @ScottShearer 

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    on at

    Isn't it an idea to use the Switch control instead?

     

    2021-08-30_23-03-22.png

     

    Mark solved if this answers your question. Thank you.

     

  • shantanu97 Profile Picture
    19 on at

    @Merco How to filter emails with subject start with "BE" and ignore any other email. Because the email subject always start with BE

  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @shantanu97 ,

     

    I just tried using the subject filter and it triggered only when the subject contained BE.  The only issue is that it will trigger with any subject with the letters BE e.g. THERE IS A BEE

     

    ericcheng_0-1630390398915.png

     

    You can also specify a trigger condition.  The below formula should only allow emails starting with BE to trigger.

     

    @equals(substring(triggerBody()?['subject'],0,2),'BE')

     

    ericcheng_1-1630391250950.png

     

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

    Connect on LinkedIn

     

     

  • Community Power Platform Member Profile Picture
    on at

    @eric-cheng 

     

    Can @shantanu97 use multiple triggers too? Or does the subject has to match all Conditions? And vs Or.

     

    2021-08-31_07-51-05.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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 398 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 323 Super User 2025 Season 2

#3
Expiscornovus Profile Picture

Expiscornovus 183 Most Valuable Professional

Last 30 days Overall leaderboard