I have spent 10+ hours beating my head against the wall for a shopify reporting workflow.
in a nutshell it pulls orders from a set date from shopify through http request, organizes them by tag and outputs it in a readable tag ie customer, wholesale, total etc.
the workflow WORKS, until theres more than 250 orders, thats the shopify limit with http request.
after that ive tried to add a pagenation loop, I DID THAT, i get the 9 or 10 pages / items in the loop and can verify all the data.
how do i merge the 10 items / pages to add up all the data?
i have tried accumulating, aggrigating, functions, merging, i cant get anything to work. ai taking me in circles. Any finger pointing in a direction would be helpful.
have spent 10+ hours beating my head against the wall for a shopify reporting workflow. in a nutshell it pulls orders from a set date from shopify through http request, organizes them by tag and outputs it in a readable tag ie customer, wholesale, total etc. the workflow WORKS, until theres more than 250 orders, thats the shopify limit with http request. after that ive tried to add a pagenation loop, I DID THAT, i get the 9 or 10 pages / items in the loop and can verify all the data. how do i merge the 10 items / pages to add up all the data? i have tried accumulating, aggrigating, functions, merging, i cant get anything to work. ai taking me in circles. Any finger pointing in a direction would be helpful. thanks in advance.
Based on the knowledge sources, you’re dealing with a pagination scenario where you need to combine data from multiple HTTP request pages. Here’s the solution:
If what you desire is to combine the results back into a single list after all the processing inside the loop is done, you need to use the Aggregate node instead of the “No Operation, do nothing” node that you have connected to the “Done” leg of the Loop Over Items. After all the items are processed they are spat out of the Done branch, and this is where you would aggregate them back into a single item.
Workflow Structure
Your workflow should look like this:
Loop Over Items node (to handle pagination)
HTTP Request node (inside the loop)
Process/transform data (inside the loop)
Connect back to Loop Over Items
Aggregate node connected to the “Done” output of Loop Over Items ← This is the critical step
Put Output in Field: Enter a field name like allOrders
Include: Choose All fields to keep all your order data
This will combine all items from all loop iterations into a single item with all your data aggregated together.
Alternative: Use Code Node for Complex Accumulation
If you need more complex accumulation logic (like summing specific fields across pages), you can use a Code node after the loop’s “Done” output. As mentioned in Merge multiple runs into one, the Code node can merge data from multiple node executions.
The key insight is: don’t try to accumulate inside the loop - let the loop complete, then aggregate all items that come out of the “Done” branch.