Data transformation > Split Out Node
The idea is:
Enable Split Out node to work on nodes earlier in the flow and incorporate data that was fetched in other previous nodes, like is the case when calling an item from a specific node in an action node.
It would be extremely useful if other action nodes could be added before the Split Out so that the Split Out can use this information when splitting out the array outputted from a node further back in the flow.
Currently, this node only works if you are splitting arrays into items from a node placed directly before the Split Out node.
My use case:
My intended workflow was to receive a webhook with JSON objects and arrays within the body.
Then search an n8n Tables database to dynamcially extract information based on one of the JSON objects (in this case a prompt).
Then I wanted to Split Out an array contained in my webhook body into different items so that I can treat each item seperately from each other in the flow, while making sure that each new item would also contain the prompt extracted from the n8n Table. This is currently not possible.
I think it would be beneficial to add this because:
This would create a more efficient way to insert dynamic information into the iterations (items) without having to run multiple times the “Get Row(s)” action for each Item that is Split Out from the array, even though the value that is fetched from the Table is the same.
Any resources to support this?
This request comes following an issues submission and exchange with @Joffcom on github: Split Out module failing with no logical reason. · Issue #20555 · n8n-io/n8n · GitHub
Are you willing to work on this?
I am happy to share my insights and provide feedback but I do not have the necessary skills to help with the code.