Describe the problem/error/question
I am trying to create a n8n workflow to search through reddit with a specific keyword. The idea is first to find all subreddits with the keyword and then go through each subreddit found to search for related posts. I am using nested loops.
Now the question is how to collect all the posts when the loops finish. For example, the outer loop runs 3 times, and the inner loop runs 4 times. I am expected 12 posts in total. In addition, I am applying some filtering, so the actual number of posts will be less.
With my current configuration, I can only get the data from the Node “Aggregate” for the first run.
I doubt it is related to the code node, but not sure how to fix.
Thanks for any help.
What is the error message (if any)?
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version:
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app):
- Operating system: