Workflows - Compare Strings Contains Operator Not working

Hi All,

I’m trying to get the below workflow to execute and the inputs seem to be correct, but it looks like contains in the compare string isn’t working? I have to be missing something.

The goal of this step in a workflow is to isolate certain user populations to execute the remaining workflow following a ‘true’ compare string.

So i have 3 steps set up below similar to this thread:

image



Step outputs are here:

{
  "defineVariable1": {
    "valuesToCheck": "|Customer Service Center|Commercial Lending|"
  },
  "defineVariable3": {
    "statusFound": "|Customer Service Center|"
  },

From what i can tell the two strings should be correct and since |Customer Service Center| is contained within |Customer Service Center|Commercial Lending| it should be true however its heading to false in the test executions.

Hi @ndanjou,

Under Compare String action in Value 2, you need to change operation to Enter Variable otherwise it will compare to $.defineVariable3.statusFound and not to |Customer Service Center|

image

thank you Animesh, that was the problem - didn’t realize those options had an impact if the variable was evaluating and being passed as the input.

Nick

1 Like

Yes. If you need to pass the variable in Enter Value Operation, then you need to add it like {{$.defineVariable3.statusFound}}.

Please mark it as solution if that worked for you.

So on my postive test this worked. but with a negative test I still get the ‘true’ eval when i would expect false. Any ideas?




I was able to replicate the issue.

I was able to get a False when I removed the pipe but when I added it back it is showing as true.

@colin_mckibben, Is it a known issue?

I am also able to reproduce this issue. I have opened an internal ticket (PLTWRKFLW-3318) to track this.

2 Likes

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.