Declaring Environment Variables from SAP Intelligent RPA Factory

Context

Environment variables in SAP Intelligent RPA Factory are the properties of an environment, re-usable across multiple projects, packages, and scenarios. Environment variables aim to retrieve common or shared elements such as credentials for instance.

You can declare text or credential environment variables in a scenario through code.

Procedure

  1. Create a text or a credential environment variable in SAP Intelligent Robotic Process Automation Factory. For more information, see Environment Variables for the Desktop Studio.
  2. In the code of the scenario, declare the text or credential environment variable using the following syntax:
    • Declare a text environment variable named MyVar, stored in an environment on the factory

    • Declare a credential named MyCred, stored in an environment on the factory

  3. To retrieve the value of the text or credential environment variable, use the following:
    • Text environment variable named MyVar

    • Credential environment variable MyCred

Results