web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : KCaB72J9qjgt6QxMGt7DdC
Power Automate - General Discussion
Answered

syntax of Mail filter subject query

Like (0) ShareShare
ReportReport
Posted on 31 Aug 2021 03:55:05 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 

  • Community Power Platform Member Profile Picture
    on 31 Aug 2021 at 12:53:07
    Re: syntax of Mail filter subject query

    @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

  • Verified answer
    eric-cheng Profile Picture
    5,171 on 31 Aug 2021 at 06:29:34
    Re: syntax of Mail filter subject query

    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

     

     

  • shantanu97 Profile Picture
    19 on 31 Aug 2021 at 04:09:00
    Re: syntax of Mail filter subject query

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

  • Community Power Platform Member Profile Picture
    on 31 Aug 2021 at 04:05:02
    Re: syntax of Mail filter subject query

    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.

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2