How to combine different items from different runs into one run?

Hello to all,

I’m using Hubspot’s API to extract companies that have not yet been enriched at the contact level. The problem is that it uses pagination to display the results. Which I managed to handle, but now in the rest of my workflows this is handled with different runs.

I would like to have a single run regardless of the number of input runs (as shown in the example in the image below). I looked around the forum for a Javascript function to combine runs. But I couldn’t get it to work.

Can you help me?

(The node just before that I use (Item Lists) is used to create items for each company searched with the Hubspot API. Everything goes here.)

Hey @arthurcorre,

What about using something like this: Merge multiple runs into one | n8n workflow template which would merge the runs into 1 dataset with multiple items that you can use?

1 Like