Environment variables can be referenced in variable mappings to supply different values depending on the environment in which a process runs, such as staging or production. To use an environment variable at runtime, it must be mapped using an expression. This can be done wherever an expression is supported, including in tasks, scripts, and process variables.
You map an environment variable by referencing it in the Expression Editor. The general expression format is: ${vars.[EnvironmentVariableName]}. The variable name must exactly match the name of the environment variable you created.
Environment variables can be used in scripts, task properties, and other configurable fields that support expressions.
The following is an example of mapping an environment variable in a script task: