Describe the problem/error/question
We are using n8n to output Hubspot deals with associated line items. We get a list of deals that fit the range than output the deal to google sheets. After this we get the line items associated with the deal and loop through those adding each one to the sheet.
What is the error message (if any)?
The issue is when a deal has more than 1 line item we use a split in batches after the itemslist node to loop through the line items associated with the deal. If I ran the workflow with the last IF connected to the main loop (first splitinbatches node) it works, as soon as I connect the last IF back to the main loop the data makes it to the sheet but not ordered correctly. Eg. Deal 123456 with 3 line items will only have 1 line item and the other line items are listed under the next deal. Is this approach wrong? It seems like this should work but can’t understand why it doesn’t.
Please share your workflow
Information on your n8n setup
- n8n version: 0.195.5
- Database (default: SQLite): default
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
- Operating system: Linux - not sure what distro