I have a subworkflow which does some api call and performs some data modification and send me the result back . now in main flow i want to use this subworkflow and handle pagination as well .
What is the best way we can do this in n8n?
I have a subworkflow which does some api call and performs some data modification and send me the result back . now in main flow i want to use this subworkflow and handle pagination as well .
What is the best way we can do this in n8n?
Hey @mylearnings_abu,
Since the Execute Workflow node passes data in a single batch execution-
The Flow: Main Flow (Loop node) $\rightarrow$ Execute Workflow (passing current page) $\rightarrow$ If node (checks if data is empty or has_more is false). Loop back if true.
Pros: Easier to debug and prevents memory/timeout issues with large datasets.