cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
JamesMitchell
Level: Powered On

Email subject contains

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!

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Email subject contains

@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.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Email subject contains

@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.

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

View solution in original post

JamesMitchell
Level: Powered On

Re: Email subject contains

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!

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (7,020)