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 / Email subject contains
Power Automate
Unanswered

Email subject contains

(0) ShareShare
ReportReport
Posted on by 14

Hello,

 

Please can someone help me to find if an email suject contains a certain word?

 

My flow is working as it gets the email and the subject but when using condition it returns false. 

Condition.jpg

I have tested it and the email subject is returned and does contain this text but it is saying false. How do i do this? Once it is true i then want to extract a certain segment of the subject.

 

Any help greatly appreciated!

Categories:
I have the same question (0)
  • Verified answer
    ScottShearer Profile Picture
    25,270 Most Valuable Professional on at

    @JamesMitchell 

    Remove the single quotes around Task ID in the condition and it will work as you have intended.  The single quotes are required around a string in an expression but not in a condition when entered directly into the expression window.

     

     

  • JamesMitchell Profile Picture
    14 on at
    Thank you. That worked. I tried that before and I failed but it failed on the next step but I thought it was this part failing!
  • jscol2367 Profile Picture
    2 on at

    Hello,

    You can try this easier solution too by selecting Add dynamic content and then using the string function as shown on the image below. I had the same situation with the string that failed to validate the text. It works perfect plus is  you can add more than one condition easily by adding another Subject text condition or email condition in the operator OR or AND for example.

    jscol2367_0-1678371666286.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…

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard