How do save state of current execution (in variable?) so I can use it in next exectuition?

I want to store some data and state during current execution somewhere and then reuse it in next executions. What is the easiest way to do it?

Using cloud n8n

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:

You could try something like Baserow Cloud and store your data including keys like a timestamp ($now) and $executionId or whatever else you would need to figure out which “previous execution” you want to look up and use in the “next” execution. Curious how you will know your executions won’t run concurrently. The notion of “current” and “next” execution are a little ambiguous normally.

Solved it by saving state in supabase table; clunky but works

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