Progressive joining of the node result and pass it back to a loop

Hi to all!
Can you please help with the logic:
I have a self hosted n8n without global variables and my task it to iterate objects through a loop making http request, get the response, joining result to a single string and pass this result back to http as a variable. I can’t copy http nodes because the number of loops (http requests) is a dynamic and I don’t know in advance - how many loops I will have. How can I join and store the http result and pass it back, before http node as an input?

I have a clue that I need a database for that, read it before and write after and delete record after loops are finished, but may be there is more elegant way to do this logic?

Thank you for any help!

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

The description looks very weird. Can you provide an example workflow with 1 or 2 loops (as you see it)?

1 Like

Hi!
Thanks but for now I was able to accomplish this loop by reading DB right after LOOP node, thaen make HTTP request, get responce and write back to DB and after the first cycle I get the access to result of the first HTTP request. So weird? but it works well!

1 Like

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