Skip to main content

Environment Variables

The Environment Variables component provides functionality to get or set environment variables in your workflow. It allows you to access and modify environment variables for your application or system.

Parameters

Operation : This parameter allows you to select the operation you want to perform with environment variables. You can choose from the following options:

"Get": This option retrieves the value of an existing environment variable. "Set": This option allows you to set or modify the value of an environment variable. Type : String

Variable Target : This parameter specifies the target for the operation. You can choose from the following options:

"Application": This target refers to application-level environment variables, which are specific to your application. "System": This target refers to system-level environment variables, which are global and apply to the entire system. Type : String

Environment : This parameter is used when performing the "Set" operation. You need to provide a dictionary containing environment variable keys and their corresponding values. The keys represent the names of the environment variables, and the values represent the new values you want to set. Type : Dictionary(String,String)

Result : This parameter returns the output of the operation, which is a dictionary representing the modified environment variables. The dictionary contains the keys and values of the environment variables after the operation has been performed. Type : Dictionary(String,String)

Usage

To use the Environment Variables component in your workflow, follow these steps:

Drag and drop the Environment Variables component into your sequence or workflow.

Configure the component by providing the necessary input:

Select the operation you want to perform by choosing either "Get" or "Set" from the Operation parameter.

Choose the target for the operation by selecting either "Application" or "System" from the Variable Target parameter.

If you selected "Set" as the operation, enter the dictionary containing the environment variable keys and their new values using the Environment parameter.

Access the modified environment variables by referencing the Result output parameter of the Environment Variables component.

Use the modified environment variables in subsequent components or actions that require environment variable data.

By utilizing the Environment Variables component, you can easily retrieve or modify environment variables within your workflow, allowing you to dynamically interact with and control the environment in which your application runs. This provides flexibility and adaptability to your automation process.