Workflow : Compare string Operator - Contains

Hi Prasad,

The “Compare String” operator is for comparing two string values. In your example you are attempting to compare a list with a string, which is why you are always getting false. In this case, you won’t be able to use “Compare Strings” to achieve your goal. Instead, try using the “Verify Data Type” operator with a slightly different JSONpath filter, as shown in the following image.

This will work as long as you are trying to match an account that has the exact name “demo”. For example, if your account list is [“demo”,“demo1”,“active directory”], it will return true. If your account list is [“demo1”,“active directory”], it will return false because there is no account with the exact name “demo”.

1 Like