Store variables between workflow runs using data tables as a key-value store — n8n Workflow
Overview
Store Variables Between Workflow Runs Using n8n's Built-In Data Tables (Key-Value Store)
Purpose
This workflow implements a simple key value store based on the built-in data tables feature in n8n – no external service needed.
What this is for
This is a workflow snippet which could be used to store a “last checked” timestamp or other variables between workflow runs.
Setup
Self-deploying – no extra setup needed Just clone the template into your n8n instance and follow the instructions on the
Nodes used
Workflow Preview
How it Works
- 1
Trigger
The workflow starts with a trigger trigger.
- 2
Process
Data flows through 10 nodes, connecting datatable, if, manualtrigger.
- 3
Output
The workflow completes its automation and delivers the result to the configured destination.
Node Details (10)
Upsert Global "your_variable_name"
dataTable
Stop and Error
stopAndError
Global found
if
When clicking ‘Execute workflow’
manualTrigger
Format value
set
Sticky Note8
stickyNote
Do something
noOp
How to Import This Workflow
- 1Click Download JSON button on the right to save the workflow file.
- 2Open your n8n instance. Go to Workflows → New → Import from file.
- 3Select the downloaded
store-variables-between-workflow-runs-using-data-tables-as-a-key-value-storefile and click Import. - 4Set up credentials for each service node (API keys, OAuth, etc.).
- 5Click Test Workflow to verify everything works, then activate it.
Or paste directly in n8n → Import from JSON:
Integrations
Created by
Mario
@octionic
Tags
New to n8n?
n8n is a free, open-source workflow automation tool. Self-host it or use the cloud version.
Get n8n Free →