Global variables

Describe the issue/error/question

I’m needing to have global variables shareable between workflow

example
URL, access_token
I need to implement the token manually update, auth2 doesn’t answer me

What is the error message (if any)?

no

Please share the workflow

(Select the nodes and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow respectively)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: latest
  • Database you’re using (default: SQLite): SQLite
  • Running n8n with the execution process [own(default), main]: owm
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker

Hi @jongomes

As you might have seen, they are not available at the moment.
https://docs.n8n.io/code-examples/expressions/variables/#resumewebhookurl
What do you want to do with them? you can easily use credentials in all your workflows. This might be what you are looking for.

The use of an external data source can also easily be used.

Hope this helps.
Please be a bit more clear on your needs if this doesn’t help.

wow you replied very fast, nice.

my problem is the following

I have several workflows that use the HTTP node, it uses url and access_token defined, how do I activate this dynamically, in case the token invalidates exchange in only one global

Hope I am understanding it correctly. Your Access token can change? so you need to refresh it and then use it in all other Workflows?
An option would be to create your own API workflow that handles the retrieval of the correct token.
That would look like this:

Can also do this with a sub workflow by calling another workflow

1 Like