Skip to main content

Creating and Updating Variables and Variable Groups

Variables store values that activities read at runtime, so a setting that changes between environments lives in one place rather than in every activity that uses it. Variables are organized into groups, which keep related values together and can be exported and imported as a unit.

Create a variable group

  1. Open the application you want to create variables for.
  2. Select the Variables icon to open the Variables side panel.
  3. Select the + icon, then select Create Group.
  4. Enter a descriptive name for the group and press Enter.

Group names must be unique, must not be empty, and must start with an alphabetic character.

Add a variable to a group

  1. Select the variable group you want to add to.
  2. Select Add Variable. A new row appears in the list.
  3. Select the Scope icon and choose where the variable applies.
  4. Select the type control and choose the variable's type. The default is Text.
  5. Enter a descriptive name in the Name field, such as userAge or orderTotal.
  6. Enter the variable's value in the Value field.

Changes save automatically as you work. A message reads Changes saved. once they are stored.

Variable scope

ScopeWhere the value applies
ApplicationAvailable to everyone with access to the application, and referenced by workflows inside it.
DeploymentAvailable during deployment and to workflows triggered afterward.
ClientManaged securely by authorized client team members. Workflows reference the variable without exposing its details.

Data types

TypeHolds
TextA string value.
NumberA decimal number.
IntegerA whole number.
BooleanTrue or False.
SecretA sensitive value. Use Secure with Vault to store it in a vault rather than in plain text.

For a Secret variable, Secure with Vault stores the value in a vault and shows it as Vault Stored. The Vault Key is the name of the secret as it is stored in the vault; the Secret is the name your application uses to reference it. Vaults are configured in Secret Manager.

To reorder variables, drag the handle at the left of each row.

How you know it worked

The variable appears in the group with its value, and a message reads Changes saved..

When it does not work

MessageCause
Name must not be emptyThe variable has no name.
Name must be uniqueAnother variable in the group uses this name.
Name must start with an alphabetic characterThe name begins with a number or symbol.
Default value must not be emptyThe variable has no value.
Default value must be a numberThe value does not match the Number type.
Default value must be a booleanThe value does not match the Boolean type.
Failed to make changes to the variable group.The change could not be saved. Retry, and contact your workspace administrator if it persists.

Next steps

Read the variable from a workflow. See Using Variables in Activities, and Best Practices for Managing Variables for naming and scoping guidance.