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!
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Wow. Thank you. I'll do that! Super helpful!
Views
Replies
Total Likes
Hi @lgaertner - would you kindly assist with a bit more guidance again? I am trying to turn the complex array in my original post into a simple one and am not meeting with success when I try to follow along with the documentation online.
Here is the basic structure I set up. (Hope the module names are clear enough.):
Setup & outputs of each module:
(Output is same complex array as in my original post):
Now I get to trying to use the map() function to convert from complex to simple array. This is how I set it up:
(where 40.Array[1]: Value is the protocol number I want in my simple array).
Both my input and output of the "Convert to Primitive Array" module are empty arrays, though:
Can you (or anyone else, please) spot what I did wrong to be getting these results? I am still hoping to get the simple array as expected in your description above.
I appreciate your help and knowledge sharing.
Views
Replies
Total Likes
The command should just be map({your array};value), with value just typed in, not mapping value in.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies