Global Variables in Guided Workflows
Updated
Global Variables are configurable values that can be defined once and reused across multiple workflows within a specific environment. They provide a centralized way to manage shared data, improving consistency and simplifying updates across workflows.
Enable Global Variables
To use Global Variables, enable the following Dynamic Property (DP):
GUIDED_WORKFLOW_GLOBAL_VARIABLES_ENABLED
Key Benefit
Efficiency: Define once, use everywhere—eliminates the need to duplicate values across workflows.
Consistency: Ensures all workflows reference the same value, reducing the risk of mismatched data.
Easy Maintenance: Updating a global variable automatically reflects across all linked workflows, saving time and effort.
Steps to Create Global Variables
Click the New Tab icon. Under the Sprinklr Service tab, select Guided Workflows within Resolve.

From the left panel, click Guided Workflow Global Variables.

Now, click +Add Global Variable to add a new variable. You can also edit an existing global variable from here. To do so, click the Options icon and then click Edit.

If you edit a Global Variable, a warning message also pops up as shown in the screenshot below.

If you create a new variable, the Create Global Variable pop-up screen will open, where you can define the following fields:
Variable Name: You can define a name for your global variable that will be accessible across all workflows in the environment.
Variable Value: You can either add a static value or a Groovy code as well.

Once done, click Save.
Note: Global variables are not available in the resource selector by default. To use them in a workflow, you must explicitly import them where needed.
Steps to Import Global Variables in a Guided Workflow
Click the New Tab icon. Under the Sprinklr Service tab, select Guided Workflows within Resolve.

From the left panel, click Guided Workflow Manager.

Now, you can either edit or add a Guided Workflow.

Click Manage Resources in the top right corner.

Click the arrow adjacent to Create New Resource and then click Import Global Variable.

The Global Variables pop-up window will open. You can select the global variable you created from the dropdown. You can also select multiple global variables at once.

Once done, click Save.
Now, to view these variables, click Manage Resources again. The selected global variables will be populated under the Global Resources section. These variables can be used across the workflow.

Global Variables through Guided Workflows
Global Variables are reusable values that can be defined once and used across multiple Guided Workflows within an environment. They help centralise shared data, ensure consistency, and make updates easier by eliminating the need to modify the same value in multiple workflows.
Note: Guided Workflow Global Variables are deprecated. Existing implementations can continue using them, but we recommend using platform-level global variables for new configurations.
Steps to Create a Global Variable
- Click the New Tab icon.
- Under Sprinklr Service, navigate to Resolve > Guided Workflows.
- In the left navigation pane, select Guided Workflow Global Variables.
Click + Add Global Variable.
- To modify an existing variable, click the Options icon and select Edit.
In the Create Global Variable window, configure the following fields:
- Variable Name: A unique name that can be referenced across workflows within the environment.
- Variable Value: Specify a static value or enter Groovy code.
- Click Save.
Note: Global Variables are not available in the resource selector by default. To use a Global Variable in a workflow, you must explicitly import it into the required workflow.