Hi,
I need a solution for my workflow:
Let’s say I have a loop using split in batches. In this loop a node is responsible for getting data using api. But this data needs to be filtered.
After the loop is finished there is an email node that sends an email containing those filtered data.
With older versions of n8n I did it this way: I defined a variable in a function node added before the loop using items[0].json.data = []; And in the loop itself I used another function node to push the filtered data in that variable. And after the loop I could access this json.data variable using $node[“Function”].json[“data”].
But with new versions of n8n this approach doesn’t work.