Issue with array "contains..." operators | Community
Skip to main content
gardensurfer
Level 3
October 2, 2024
Question

Issue with array "contains..." operators

  • October 2, 2024
  • 1 reply
  • 849 views

Hi. Sorry. Me again. I had an array that looked like this (output of an execution): 

 

And in my filter, the condition was intended to allow scenario to continue if "Array does not contain (case-insensitive)"... the 2nd value shown in the array "GO40290". But from this pic, you can see by the green checkmark that the filter let the bundle pass thru. 

 

 

Did I set the filter up wrong?: 

 

 

Should I have done something differently or am I perhaps misunderstanding how to use the filters or operators? 

 

Thanks!

 

 

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

lgaertner
Level 9
October 2, 2024

Hello gardensurfer,

 

The array in your first screenshot is an "array of objects". The filter expects a simple array in a form like this:

 

['GO40290', 'BP40567', 'C040115', 'MO393313']

 

You need to check the map() function in Fusion to "convert" your array before using the filter.

 

map(complex array; key;[key for filtering];[possible values for filtering]) 

 

 

Regards

Lars

gardensurfer
Level 3
October 3, 2024

Wow. Thank you. I'll do that! Super helpful!