Global Variables
Global variables are persistent values you can define and use throughout your entire workspace and within the Workflows. With Global variables, users can store centralized information and pass data between Workflow. This improves consistency in your Workflows and saves valuable time as you define them once only. For example, teams can use global variables for reoccurring credentials, monitoring and updating a status, and many other use cases.
There are two types of global variables:
- Raw value variable
- Secret variable
Global variables are displayed on the left-hand side navigation menu. Open the page to show all global variables.
Global variables are available to use with the variable picker.
Creating a new global variable
- On the left-hand side navigation menu, click > New Variable. The New Global Variable dialog box opens.
- Enter the parameters:
Parameter | Description |
---|---|
Name | Name of global variable. |
Value | Value of the variable. |
Secret | Select the checkbox if you wish to define the variable as secret. Uses the default secret manager of the workspace. |
- Click Create. Global variables are available in the [variable picker](/docs/workflows/building-workflows/dynamic-variables/variable-picker
Using global variables
Use global variables anywhere that the variable picker is available. All existing global variables can be found in the GLOBAL VARIABLES section in the var picker.
- Click + to open the variable picker.
- Select a global variable. If its a secret, the variable value is not displayed. If not, its value is displayed on the right-hand side of the variable picker.
- Click Add. The global variable is defined in your Automation Step.
Global Variables Actions
Create or update a Global Variable
Creates or updates a Global Variable.
Parameter | Description |
---|---|
Variable Name | The name of the new/existing global variable. Once create/updated, it is available for all Workflows in a workspace. |
Variable Value | Assign a value to the global variable. Value is string only, limited to 1 MB size. |
Update Global Variable
Updates a Global Variable.
Parameter | Description |
---|---|
Variable Name | The name of the new global variable. |
Variable Value | Assign a value to the global variable. Value is string only, limited to 1 MB size. |
Delete Global Variable
Deletes a Global Variable.
Parameter | Description |
---|---|
Variable Name | The name of the global variable to delete. Once deleted, it is not available for all other Workflow in a workspace. |
Get Global Variable
Gets the value of a Global Variable.
Parameter | Description |
---|---|
Variable Name | The name of the global variable to get. |
List Global Variables
Get a list of all the Global Variables.