Templates / Store variables between workflow runs using data tables as a key-value store

Store variables between workflow runs using data tables as a key-value store

Ready for 3.0

by Mario ✓ · 108 views · created 2026-02-16 · Miscellaneous

Ready 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.

📬 Weekly n8n 3.0 breakage alerts, free

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”.

  1. Get Global "your_variable_name" (Data table): get
  2. Global found (If): checks a condition and branches into true / false
  3. If: checks a condition and branches into true / false
  4. Format value (Edit Fields (Set)): sets 1 field: your_variable_name
  5. Set default value (Edit Fields (Set)): sets 1 field: your_variable_name
  6. Stop and Error: stops the run with an error
  7. Create Globals table (Data table): create (table)
  8. 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)

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…

Excerpt from Mario's description on n8n.io.

View the original on n8n.io → Check your own copy

Get the weekly “what broke” email

New templates, newly broken ones, and n8n release changes. One short email a week.

Form not loading? Subscribe here.