1. Home
  2. ...
  3. Advanced Settings
  4. Flow Variables

Flow Variables

Configuring Flow Variables

Variables allow for custom flow configuration and environment parameterization, eliminating the need to create a separate integration flow for each environment.

IMPORTANT

If your flow has a REST type trigger, it will not be possible to use environment variables in the URI.

Creating a variable

Variables can be created in both the Diagram tab and the Source Code tab, using the Flow Variables button in the workspace header.

Flow Variables modal window

Click the Flow Variables button button in the workspace header.

Select the environment in which the variable will be applied: Production or Staging.

Register the variable in the Flow Variables modal window.

Save the variable by clicking Save.

To register a variable, fill in the following fields:

  • Key: variable name. Use letters, numbers and _, up to 60 characters. The name cannot repeat within the same environment.
  • Value: value assigned to the variable, up to 250 characters, which will be deployed automatically according to the selected environment.
  • Secure: a column with a lock on every row. A closed lock marks a secure variable, such as passwords, tokens, and API keys. The value of a secure variable is encrypted when you save it and is not shown on the flow screen or returned by the API: the screen displays only ••••••••. An open lock marks a regular variable, whose value anyone with access to the flow can see.
NOTE

To change the value of a secure variable, click the value in the row and enter a new one: the field opens empty. If you save without touching the variable, the current value is kept, and renaming the variable also keeps its value.

To stop protecting a variable, click the key or the value of the row, open the lock, and enter a new value, which becomes visible. The previous value is discarded because it cannot be recovered. To protect a regular variable, edit the row and close the lock: after you save, its value can no longer be seen.

To apply the variables, enter the variable name in curly braces inside the component, as in the example below:

  • Variable in the HTTPS component:

In this case, follow the steps below:

  • Register the variable by clicking the Flow Variables button in the workspace header.

  • In the HTTPS component form, in the Common tab, fill in the Http Uri field with the variable name in double curly braces: {{variable name}}.

Variable management

  • To add a variable, click + on a row, which creates the new variable right below it, or Add variable when the environment is empty.
  • To delete a variable, click the trash icon and confirm. The deletion only takes effect after you click Save.
  • To find a variable, use the search field, which matches keys and values. Secure variables are matched by key only.
  • To apply your changes, click Save at the bottom of the window. Unsaved changes shows that changes are pending, and Cancel discards all of them.
  • The Flow Variables button shows a counter when secure variables are missing a value.

When you duplicate a flow, secure values are not copied. The variables arrive in the copy marked Needs value, and an alert at the top of the window shows how many need a value. Fill in each one before you deploy.

The value of a secure variable also appears as <redacted> in the flow's logs, traces, Executions and error responses. A value with fewer than 8 characters is not searched for by value in those records. See Observability and Monitoring.

In any flow that has a secure variable, the window shows the Hidden variables are now Secure notice until you close it. Closing it hides it in every flow of the tenant, in that browser. The values of the variables that used to be hidden were encrypted and can no longer be seen; to change one, edit it and enter a new value.

A release opened in the editor shows the variables in read-only mode, with the Read-only access notice and no +, trash, editing or Save. Secure variables appear as ••••••••.

IMPORTANT

It is not possible to change the variables of a flow with Deployed status. To modify them, a new deployment will be required.

Permissions by environment

Access to flow variables is controlled per environment, in Access Control, by the following permissions:

  • Flow Variables Staging: allows viewing and editing the flow variables of the Staging environment.
  • Flow Variables Production: allows viewing and editing the flow variables of the Production environment.

Users who have only one of the permissions view and edit the variables of the matching environment only. In the tab of the other environment, the Flow Variables window shows no values, does not allow editing and displays the message "You don’t have permission to view or edit the Flow Variables of this environment.". When you save, only the loaded tabs are written, so the variables of the environment without permission stay as they were. Users who have neither permission see both tabs in that state.

The Flow Variables tab of the Overview panel, in Deployments, follows the same rule for deployments of Diagram & Source Code flows: it requires the permission of the deployment's environment and, without it, displays the message "You don’t have permission to view the Flow Variables of this environment.". Deployments of Canvas flows are not affected: the same tab keeps showing their environment variables.

In the interface and on the per-environment API routes, the Create and update integration flows and List and view integration flows permissions do not give access to flow variables. The deprecated API routes (GET and PUT /api/v1/integration-flows/{integrationFlowId}/variables and GET /api/v1/deployments/{deploymentId}/variables) keep the previous permissions until they are removed. In addition, restoring a release replaces the flow variables of every environment with those of the release, without requiring the Flow Variables permissions. See Permissions.

Locked variables

The variables listed below are reserved for internal use and cannot be used:

Examples

The example below references the variable "name". When executing this integration, the variable will be replaced by the registered name.

In this other example, we reference a variable in a URL.

How happy are you with this page?

We use cookies to enhance your experience on our site. By continuing to browse, you agree to our use of cookies.Learn more