Hi all,
I’m looking for a solution to detect when my Iterator returns an empty array ([]
) or null
.
The issue I’m encountering is that when the Iterator returns null
, the scenario stops without triggering an error. I’d like to find a way to route the flow to a different branch when this happens.
Thank you.
1 Like
You can check with a filter if an array is empty by making this filter
Array length greater than or equal to
I have only tested it with an empty array
Thank you for your response. This didn’t work because the check would need to happen after the iteration. However, since the scenario stops at the Iterator when it returns nothing, it never reaches the next checkpoint.
Put a router before the iterator and have the check there - if there is something, iterate, otherwise do something else.
1 Like