Looping over an array to save multiple files

Describe the problem/error/question

I am trying to download data from multiple websites and save a file for each unique website.

What is the error message (if any)?

All the websites are being dwnloaded but ehy end up in the save file -.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:1.72.1
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
  • Operating system:macoOS

Hey @Ngozi_Dozie , you can use Loop node for that. Though the way you do it means loop is obsolete as it does nothing. The node “Replace Me” is for a reason. You need to replace it with your logic to work on individual set of data to upload it to a file.

Just to demonstrate what I mean take a look (and run) the following workflow.

1 Like

Thanks so much - this worked perfectly. Seems obvious now but…

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