Flow Designer IF 'contains' condition evaluating false when comparing array

Seth Dormaier2
Tera Contributor

Hello, 

 

I used Get Variables to get a multi-row variable set, and I'm trying to build an IF condition from the array. When I select the array object and set the contains value to the sys_id string, the condition is evaluating as false, even though the logs seem to clearly show that the values should match. Any help would be appreciated. Thank you. 

 

IF condition.pngExecution details.png

3 REPLIES 3

Elijah Aromola
Mega Sage

What is the type value of the array pill though? You may see a readable array at run time that looks like a string but the system is processing it as an Array data type. You may have to either create a custom action to check this using code, or try to use a function modifier on the array to stringify it. (haven't done this, not sure if it works)

Thank you. I'll try that. Its an Array. Is there any way to use the String objects underneath it? Those data pills are inaccessible within the flow (greyed out). 

SethDormaier2_0-1669920793577.png

 

That pill structure is just showing you the types available in each index should there be values. To access those pills directly you have to add a loop action and inside of that you can access those pills per index.