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 / How to diferentiate em...
Power Automate
Unanswered

How to diferentiate email subject with upper case and lower case in subject filter for When a new email arrives (V3) ?

(0) ShareShare
ReportReport
Posted on by 9

i have 2 automatic email with the same name


- Pricelist 123456 Has Been Published

- Pricelist 123456 has been published

i only want to trigger the flow whenever there is an email with the first email subject name received in inbox (Has Been Updated)

if i write 'Pricelist' it will take both email

how to write it in subject filter for When a new email arrives (V3) action in Power Automate flow ?

Categories:
I have the same question (0)
  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @azid When using the When a new email arrives (V3) trigger (or any automated trigger) for your flow, it's always best practice to use Trigger Conditions

     

    I've linked a tutorial below on how to add trigger conditions to your flow. If you want to only trigger your flow for when an email with this exact subject line is received: Pricelist 123456 Has Been Published

     

    Ensure you are using the is equal to operator. It will look for an exact match. Keep in mind it is case sensitive. However, if you want to ensure your flow will trigger for both these subject lines:

    • Pricelist 123456 Has Been Published
    • Pricelist 123456 has been published

    You'll need to convert your subject line to lower case. I cover how to do that in this tutorial.

     

    4 Ways You Can Use Trigger Conditions in Your Microsoft Power Automate Flow

     

    If you are using an Automated Cloud flow trigger in your flow—you need to consider adding trigger conditions.

     

    Do YOU 🫵 know what a trigger condition is? Trigger conditions can be set in most flow triggers. These conditions you set must be true for the trigger to fire. In this Power Automate tutorial, I’m going to show you how to use trigger conditions in your flows to control when your Power Automate flows trigger.

     

    If your plan has flow run limits—you can avoid triggering your flows unnecessarily by using trigger conditions.

     

    I’ll cover four different flow examples that would benefit from trigger conditions:

    ️ Triggering a flow when a column is changed to a specific value

    ️ Triggering a Flow When an Event Updated or Deleted

    ️ Triggering a Flow When a New Folder is Created

    ️ Triggering a Flow When a Specific Email is Received I’ll also show you a trick on how to easily create the expressions needed and give you a few tips on how to troubleshoot your flow.

     

    IN THIS VIDEO:

     Four different flows that would benefit from trigger conditions

     What is a trigger condition?

     How to add a trigger condition to your flow

     How to trigger a flow when a column is changed to a specific value

     How to trigger a flow when an event is updated or Deleted

     How to trigger a flow when a new folder is created

     How to trigger a flow when a specific email is received

     How to troubleshoot a trigger condition

     How to prevent case sensitivity issues with a trigger condition

     How to use the filter array action to easily compose an expression that can be used in a trigger condition

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram
  • azid Profile Picture
    9 on at

    hi @creativeopinion , thank you for your answer, but the number will be different each time there is a new email arrived,  'Pricelist ....... Has Been Published'

    so its not exact match like in the example

  • creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @azid In that case you can check the subject to see if it starts with 'pricelist' and ends with 'has been published'. I'd recommend converting the subject line to lower case to prevent any case sensitivity issues. You can refer to this section of my tutorial I linked above to see a demo of using the toLower() function. 

  • azid Profile Picture
    9 on at

    @creativeopinioni have watched your videos, but i still didnt get the desired outcome

    the only difference is uper case and lowercase if im ussing lowercase expresion, it will makes the 2 subject email bacome the same whic is not the desired outcome, i only want to trigger when there is a subject email that contains string 'Has Been Pulished' not the other




  • VictorIvanidze Profile Picture
    13,073 on at

    Use contains() function.

  • Verified answer
    creativeopinion Profile Picture
    10,502 Super User 2025 Season 2 on at

    @azid If you only want to trigger when there is a subject email that contains Has Been Published (note you had a spelling error above), as @VictorIvanidze mentioned below, use the contains() operator. 

     

    However, as mentioned in my video—you still need to convert the subject line to lowercase to avoid any case sensitivity issues.

     

    For example, I used this trigger condition:

    @contains(triggerOutputs()?['body/subject'], 'Has Been Published')

    creativeopinion_0-1716607809678.png

    The subject line is left as is and the string is: Has Been Published

     

    However, the flow only triggered on the fourth try when the subject line text matched the string in the trigger condition.

    creativeopinion_1-1716607876090.png

    creativeopinion_2-1716607945672.png

     

     

    For that reason, you need to convert the subject line to lower case AND the string should be in lower case.

    creativeopinion_3-1716608005119.png

    @contains(toLower(triggerOutputs()?['body/subject']), 'has been published')

     

    creativeopinion_4-1716608068142.png

    The flow triggers no matter what case the subject line text string (you're looking for) is in.

    creativeopinion_5-1716608102768.png

     

    Hope this helps!

    If I helped you solve your problem—please mark my post as a solution .
    Consider giving me a 👍 if you liked my response!

    👉 Level up your Power Automate skills by checking out my tutorials on YouTube
    👉 Tips and Tricks on TikTok and Instagram

     

     

     

     

  • azid Profile Picture
    9 on at

    @creativeopinion Thank you for your kind reply, it solve my problem, but im still not using lower because im intended to only get string subject with 'Has Been Published', 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

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