How to wait for 3 nodes to finish before execution?

Hi! I currently have 3 HTTP nodes on separate branches that all feed into a Code node. I have the Code node set to run once for all items but I am hitting a problem. When the first HTTP node finishes it immediately triggers the Code node before the other 2 have finished.

I can see from older answers here that you can use the merge node to wait for all nodes before execution. That option is no longer available and appending the 3 responses together creates a very unwieldly JSON.

Is there no other option? It seems strange that we can’t have a node that halts progression until all nodes feeding into it are ready.

Hi @HFulcher, welcome to the community


You can try the Merge with Combine Mode and Combine By Position:



:point_right: If this solves your problem, kindly mark my reply as the solution :white_check_mark::pray:t2:

1 Like

Hi Mohamed,

Thanks for the swift reply. In this scenario it has the same behaviour as Append which isn’t quite what I was hoping for. The Code node was written to pull specific fields from each JSON and bring it together in one JSON. Being able to deal with the inputs individually was a way to make it cleaner.

Looks like I either have a code node for each HTTP node and merge them after or merge before and parse it out.

Thanks for your help

You’re welcome!

Yes, probably this is a better design…

Good Luck!