Array in Compare Strings

Hello is there a way to put an array in compare strings? Instead of multiple compare strings?

1 Like

Hello Dawn,

What is the specific use-case that you are trying to achieve?

Hello if an identity’s is terminated and their country code is BR, JP, IN, NZ, etc (I have about 12 total) then it will send an email when the user is offboarded to the user’s manager.

Hi Dawn,
You can’t input all those values in a single operator using workflow.
Either you can nest multiple compare operators or create 12 different workflows for all those country code.

Another way of doing it is by creating an identity profile mapping where you can create an attribute flag which will be populated as true if the user’s country code is any of the above 12 you can do that easily using conditional transforms.

After that a single workflow can be configured where you can check whether than flag is true if yes send the manager the email

Give this a try…
Add a Define Variable operator before Compare Strings where you can define a variable Country List which will have the codes for all countries separated by a .


Then check if this string contains the country code of the identity

2 Likes

no it isn’t working does it work for you? should i use commas instead of periods

this works as long as i use commas

1 Like

That’s strange because it worked for me
I used an identity who had value JP for country.
When JP was included in the Country list variable test returned true


And false when I tested again removing JP from the list

Anyway glad to know you got it working

Thank you yes it works for both !

1 Like

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