Hello
I have this kind of result:
[
{
"values": [
"000732342",
"",
"000731588"
]
}
[
I would like to be able to iterate each of the values and exclude the empty one
Thanks for your help
Hello
I have this kind of result:
[
{
"values": [
"000732342",
"",
"000731588"
]
}
[
I would like to be able to iterate each of the values and exclude the empty one
Thanks for your help
Hi @fporta, you could use the Item Lists node to split the array inside values into separate items followed by an IF node to filter out the empty field:
Hope this helps! ![]()
Have you had a look at the example workflow I posted in my previous message? You can just copy and paste it into your n8n canvas to try it yourself.
In your screenshot, the Item Lists node would require the field name in the Fields To Split Out field rather than an expression. So in the example you have described that’d be values.
Sorry, it’s my fault, my n8n server was down. I’ve just looked at your example, indeed you have to give the value rather than going to look for it in the previous node…
Thank u very much
Glad to hear it’s working, thanks so much for confirming!