Flow Designer If statement not evaluating Strings properly

Christian P
Tera Contributor

I am attempting to use a very simple IF statement condition on a subject of an email to look for a word in the subject. 

 

  1. I have tried using the contains operator on the entire subject and that wasn't working. (see print screens)
  2. I then tried trimming and creating a substring of the subject to simply grab the first 3 characters and compare that, which also isn't working. (see print screen)

I think the Flow designer has a bug in it when working with Strings......or am I missing something?

 

Thanks,

1 ACCEPTED SOLUTION

vkachineni
Kilo Sage
Kilo Sage

Just a thought. Can you have flow variable called "email_subject". Read the Email subject in to the flow var and then see if that works.

vkachineni_0-1668275630835.png

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022

View solution in original post

2 REPLIES 2

Christian P
Tera Contributor

Replying to my post with some additional thought.
It could be that the subject field is of string_full_utf8 type and the flow designer is comparing to a String type.

 

I have tried using the "Headers" field which is of type String and the "contains" operator does seem to evaluate correctly now.

 

This would lead me to believe that fields of type full_string_utf8 can't be used in IF conditions in the flow designer since they don't evaluate against Strings correctly.....anyone else come across this issue?

vkachineni
Kilo Sage
Kilo Sage

Just a thought. Can you have flow variable called "email_subject". Read the Email subject in to the flow var and then see if that works.

vkachineni_0-1668275630835.png

 

Please mark Correct and click the Thumb up if my answer helps you resolve your issue. Thanks!
Vinod Kumar Kachineni
Community Rising Star 2022