Multiple split in batches

Hello to all!

JS context: I get from mongoDB a database of 200 companies with their linkedIn URL, then I make a first forEach in which I scrape all the product managers via an HTTP request, the result of the HTTP request returns an array of several objects (1 object for each product manager). I do a second forEach loop to create a document in the database for each product Manager with the company ID.

On n8n when I want to do a splitInBatches in another splitInBatches, the workflow does not work correctly, has anyone ever had this case?

Thanks in advance!

Hey @Albaninho10, I actually haven’t tried to do nested split in batches yet. What exactly is not working for you here? Can you describe the behavior that you expected and how it is actually?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.