Store variables between workflow runs using data tables as a key-value store — Flujo de trabajo n8n

Media complejidad Disparador10 nodos🏷️ Miscellaneouspor Mario

Descripción general

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

Nodos utilizados

Upsert Global "your_variable_name"Stop and ErrorGlobal foundWhen clicking ‘Execute workflow’Format valueSticky Note8Do something

Vista previa del flujo de trabajo

1. Get variable
Fallback: Create table if it does not exist
_Needs to run first if previous node
failed - hence it is placed above_
2. Define default value if needed
4. Save variable
How it works
A data table is used as a key value store having the tw
_It is referenced by name, which makes it easier to mig
1. At
3. Use variable
C
Create Globals table
S
Stop and Error
I
If not the expected error
G
Global found
W
When clicking ‘Execute w…
G
Get Global "your_variabl…
S
Set default value
F
Format value
D
Do something
U
Upsert Global "your_vari…
10 nodes10 edges

Cómo funciona

  1. 1

    Disparador

    El flujo de trabajo comienza con un disparador disparador.

  2. 2

    Procesamiento

    Los datos fluyen a través de 10 nodos, connecting datatable, if, manualtrigger.

  3. 3

    Salida

    El flujo de trabajo completa su automatización y entrega el resultado al destino configurado.

Detalles de nodos (10)

UP

Upsert Global "your_variable_name"

dataTable

#1
ST

Stop and Error

stopAndError

#2
GL

Global found

if

#3
WH

When clicking ‘Execute workflow’

manualTrigger

#4
FO

Format value

set

#5
ST

Sticky Note8

stickyNote

#6
DO

Do something

noOp

#7

Cómo importar este flujo de trabajo

  1. 1Haz clic en el botón Descargar JSON a la derecha para guardar el archivo del flujo de trabajo.
  2. 2Abre tu instancia de n8n. Ve a Flujos de trabajo → Nuevo → Importar desde archivo.
  3. 3Selecciona el archivo store-variables-between-workflow-runs-using-data-tables-as-a-key-value-store descargado y haz clic en Importar.
  4. 4Configura las credenciales para cada nodo de servicio (claves API, OAuth, etc.).
  5. 5Haz clic en Probar flujo de trabajo para verificar que todo funcione, luego actívalo.

O pega directamente en n8n → Importar desde JSON:

{ "name": "Store variables between workflow runs using data tables as a key-value store", "nodes": [...], ...}

Integraciones

datatableifmanualtriggersetstopanderror

Obtener este flujo de trabajo

Descarga e importa con un solo clic

Descargar JSONVer en n8n.io
Nodos10
Complejidadmedium
Disparadortrigger
CategoríaMiscellaneous

Creado por

Mario

Mario

@octionic

Etiquetas

datatableifmanualtriggersetstopanderror

¿Nuevo en n8n?

n8n es una herramienta de automatización de flujos de trabajo gratuita y de código abierto. Alójala tú mismo o usa la versión en la nube.

Obtener n8n gratis →

Related Miscellaneous Workflows