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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Email subject contains
Power Automate
Answered

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,290 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 796

#2
Valantis Profile Picture

Valantis 568

#3
Haque Profile Picture

Haque 538

Last 30 days Overall leaderboard