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

Średnia złożoność Wyzwalacz10 węzłów🏷️ Miscellaneousautor: Mario

Przegląd

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

Użyte węzły

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

Podgląd workflow

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

Jak to działa

  1. 1

    Wyzwalacz

    Workflow uruchamia się wyzwalaczem wyzwalacz.

  2. 2

    Przetwarzanie

    Dane przepływają przez 10 węzłów, connecting datatable, if, manualtrigger.

  3. 3

    Wyjście

    Workflow kończy automatyzację i dostarcza wynik do skonfigurowanego miejsca docelowego.

Szczegóły węzłów (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

Jak zaimportować ten workflow

  1. 1Kliknij przycisk Pobierz JSON po prawej stronie, aby zapisać plik workflow.
  2. 2Otwórz swoją instancję n8n. Przejdź do Workflow → Nowy → Importuj z pliku.
  3. 3Wybierz pobrany plik store-variables-between-workflow-runs-using-data-tables-as-a-key-value-store i kliknij Importuj.
  4. 4Skonfiguruj dane uwierzytelniające dla każdego węzła usługi (klucze API, OAuth itp.).
  5. 5Kliknij Testuj workflow, aby sprawdzić, czy wszystko działa, a następnie aktywuj go.

Lub wklej bezpośrednio w n8n → Importuj z JSON:

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

Integracje

datatableifmanualtriggersetstopanderror

Pobierz ten workflow

Pobierz i zaimportuj jednym kliknięciem

Pobierz JSONZobacz na n8n.io
Węzły10
Złożonośćmedium
Wyzwalacztrigger
KategoriaMiscellaneous

Autor

Mario

Mario

@octionic

Tagi

datatableifmanualtriggersetstopanderror

Nowy w n8n?

n8n to darmowe narzędzie open-source do automatyzacji workflow. Hostuj samodzielnie lub użyj wersji chmurowej.

Pobierz n8n za darmo →

Related Miscellaneous Workflows