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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:23 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:34 AM
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)

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 10:55 AM
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).

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-01-2022 11:38 AM
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.