Environment Variables

Environment variables allow you to reuse certain information for a given environment.

You use environment variables to pass parameters to automations. You can create environment variables in the Cloud Studio for which you can later set values across specified environments. For example, you can create a "S4HANA" variable with fields URL, login and password.

After creating the project successfully in the SAP Intelligent Robotic Process Automation Factory, the created project is displayed in the Cloud Studio Project Explorer.

Perform the following steps to create environment variables:

  1. In the Project Explorer, click or click Menu in the left panel of the Project Explorer.

    Click the drop-down arrow and then select Dependencies.

    The Manage Dependencies icon is displayed.

  2. Click Manage Dependencies and then click the Environment Variables tab. The Environment Variables screen is displayed.

  3. Click + Create.

    The Create an environment variable is displayed.

  4. Provide the variable details such as variable Identifier (An Identifier is a unique identity of a variable in the system.) , Description, and Type in the respective fields.

    1. Under *Type, click in the Select a type field.

      The list of variable types is displayed.

    2. Select the required variable type from the drop-down list.

  5. Click Create. The environment variable is created.

How to Use Environment Variables?

Once you've created environment variables in your project, you can either:
  • Use environment variables during the test of an automation in the Cloud Studio: in this use case, you must fill in the required values in the environment variable fields to allow the testing of the automation.

    For more information, see Manage Environment Variables in Automation Testing.

  • Set values to environment variables when adding the package containing your project to an environment. This way the values of the environment variables are filled for a future automation execution.

    For more information, see Environment Variables from the Cloud Studio.