Skip to main content

Set Environment Variable

Sets, updates, or deletes an environment variable in the specified environment. To delete a variable, leave the value empty.

Category: Variables & Data Assignment · Group: General · Activity name: SetEnvironmentVariable

The SetEnvironmentVariable activity in the designer

Example

outputVariable = SetEnvironmentVariable("<environmentId>", "<variableName>", deleteVariable=True, isSecret=False)

Inputs

NameTypeRequiredDefaultDescription
Environment IDstringYesThe ID of the environment where the variable will be set.
Variable NamestringYesThe name of the environment variable to set or update.
Delete variable from environmentbooleanIf enabled, deletes the specified variable from the specified environment.
Variable is secretbooleanFalseCheck this box if this variable is a secret variable.

Outputs

NameTypeDescription
outputVariablestringSpecifies the name of the variable that will store the operation result.