Variables

Fixed values that all workflows in a project can read.

Variables are fixed values that workflows in a project share. Use them for a base URL, a limit, or a flag.

Workflows can read a variable. Workflows cannot change it.

Do not store secrets

Variable values show in the UI and in run data. Do not put a password or a token in a variable. Use a credential. See Use credentials.

Read a variable

Use $vars in an expression. Use the variable key as the name.

{{ $vars.baseUrl }}

If a workflow reads a key that does not exist, the workflow shows Missing variables.

Add a variable

  1. Open the project.
  2. Click Variables in the sidebar.
  3. Click New variable.
  4. Enter the Key. Use letters, digits, and _. Do not start with a digit. The maximum length is 64 characters.
  5. Pick a Type: string, number, boolean, or json.
  6. Enter the Value. The value must match the type.
  7. Optional: enter a Description.
  8. Click Save.

A value can be 64 KB at most.

Edit a variable

  1. Click Edit on the row.
  2. Change the type, the value, or the description.
  3. Click Save.

You cannot change the key. To use another key, add a new variable and delete the old one.

Delete a variable

  1. Click Delete on the row.
  2. Read the message. If workflows use the key, the message lists them. Those workflows will fail.
  3. Confirm.

Who can change variables

Only a project owner or admin sees New variable, Edit, and Delete. Other members can read the list. An API key with the Admin role can also manage variables. See API keys and Projects and members.

Variables and workflow files

An exported workflow file holds the variable keys that the graph reads. It does not hold the values. When you import a file, the page lists the keys that the project does not have. See Editor.

Change this page on GitHub