global-variables

Package Information

Released: 5/31/2025
Downloads: 19 weekly / 231 monthly
Latest Version: 0.1.1
Author: mrowrpurr

Documentation

Global Variables n8n Node

Inspired by n8n-nodes-globals

https://github.com/umanamente/n8n-nodes-globals

Install n8n-nodes-global-variables

Requires self-hosted n8n

How it works

1. Create a Global Variables credential

Note: you can have as many of these as you want to organize your variables.

2. Add some variables with names and values

By default, each Global Variables credential has the following:

  • 5 boolean variables
  • 5 number variables
  • 5 JSON variables
  • 10 secret variables (password fields so the value is hidden)
  • 25 string variables

3. Add a Global Variables node in your workflow

Choose the credential you created in step 1.

That's it!

Wherever the node is used, its variables will be available in the workflow after the node is executed in $json.

$json.vars.X

If you choose Put All Variables in One Key in the node options, all variables will be available under the $json.<the name you chose> key.

$json.X

If you disable Put All Variables in One Key in the node options, each variable will be available under its own key in $json.

Does not overwrite existing variables

If you have existing variables in your workflow, the Global Variables node will not overwrite them.

It will only add the variables that are defined in the credential.

Attribution

This node is inspired by the n8n-nodes-globals node by Umanamente.

https://github.com/umanamente/n8n-nodes-globals

License MIT

Discussion