---
title: Global Variables
description: Learn how to define, manage, and use Global Variables that can be accessed across multiple Workflows.
---
import { Aside , Steps} from '@astrojs/starlight/components';

# Global Variables

Global variables are reusable data elements that can be accessed in multiple Workflows. They are ideal for storing constant values such as database names, table names, or configuration parameters.  
By defining these values once, you can reference them in any Workflow without manually re-entering them, ensuring consistency and simplifying updates.

![Global Variables List](/images/Automation/Workflows/Global-Variables/global-variables.png)

## Adding Global Variables


<Steps>
1. Navigate to **Automation → Workflows → Global Variables** <i class="fa-duotone fa-regular fa-value-absolute"></i>.
2. Click the **Add** button in the top-right corner.
3. In the Add Variable form, enter the following details:  
   * **Name** – A descriptive identifier for your variable (e.g., `SQLITE`, `TABLES`).  
   * **Type** – The type of data (e.g., String, Number, Boolean, Date, JSON).  
   * **Value** – The actual data or text value of the variable.  
   * **Options** *(optional)* – Predefined selectable values (e.g., `empdata`, `regapricing`).  
   * **Allow Custom** – Enable this if you want to allow custom values in addition to the predefined options.
4. Click **Save** icon to store the variable.
5. Your newly added variable appears in the list with **Edit** and **Delete** actions available.
</Steps>

#### Example
In the example below
- `SQLITE` is a **String** type variable with the value **Infoveave**.
- `TABLES` is a **String** type variable with the value **empdata**, and has predefined **Options** `empdata` and `regapricing`, with **Allow Custom** enabled.

![Global Variables Example](/images/Automation/Workflows/Global-Variables/add-global-variables.png)

## Using Global Variables

Global Variables can be applied in any Workflow activity to avoid hardcoding repeated values.

Steps to use a Global Variable in a Workflow activity
1. Select the activity where you want to use the variable.
2. Toggle the **fx** button next to the input field to switch from manual input to variable selection mode.
3. From the variable list, choose the required **Global Variable**.
4. Save the changes to ensure the variable is used during Workflow execution.

## Dynamic Variable Updates During Execution

![Dynamic Variables Execution](/images/Automation/Workflows/Global-Variables/dynamic-variable.png)

Global variable values can be edited at the time of execution and will be used only for that specific Workflow instance.  
These changes do not update the stored Global Variable permanently — they apply only for that run.

When you execute a Workflow from either the **Workflow Summary** or **Workflow Instance** screen
1. An **Edit Variables** dialog appears.
2. You can change the value of any variable before starting the execution.
3. The updated values are applied for that execution only.

<Aside type="tip">
Use Global Variables for values that remain consistent across Workflows to reduce errors and simplify maintenance.
</Aside>
