Store variables between workflow runs using data tables as a key-value store
Ready for 3.0Ready for 3.0. This template uses no nodes that n8n 3.0 removes. No removed nodes, versions or helpers found. Static check, last run 2026-12-01.
What this workflow does
This workflow has 10 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Get Global "your_variable_name" (Data table): get
- Global found (If): checks a condition and branches into true / false
- If: checks a condition and branches into true / false
- Format value (Edit Fields (Set)): sets 1 field: your_variable_name
- Set default value (Edit Fields (Set)): sets 1 field: your_variable_name
- Stop and Error: stops the run with an error
- Create Globals table (Data table): create (table)
- Upsert Global "your_variable_name" (Data table): create or update
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (6)
- Data table
n8n-nodes-base.dataTable - Stop and Error
n8n-nodes-base.stopAndError - If
n8n-nodes-base.if - Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - No Operation, do nothing
n8n-nodes-base.noOp
From the author
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…