Hi! I want to iterate over all items where each item has to go through some conditions and yields a result using the “Set” node at the end of each row. When all items were then want to collect the results using the collect commands node where I have all outputs of all 4 set nodes and combine them into a single array. But I cannot access the results of the set nodes because the workflow says that I have to execute them. How can I solve this?
Please share the workflow
Share the output returned by the last node
None
Information on your n8n setup
n8n version: 0.220.0
Database you’re using (default: SQLite): SQLite
Running n8n with the execution process [own(default), main]: main
Running n8n via [Docker, npm, n8n.cloud, desktop app]: Docker
This won’t work unfortunately as your Collect commands node has no relation to the Set nodes it references.
Perhaps you can rewrite your workflow in a way that the Set nodes connect to your Extract Comments and Collect commands nodes (if these depend on your Set nodes)? Something like this:
Combining them into a single array is a whole different beast. You can in theory use the Merge node for this, but it will trigger all incoming branches to run even if they shouldn’t:
This will change in the future, but for now it’s important to keep in mind.