Skip to main content
Nintex Community Menu Bar

Using Environment Variables

  • August 31, 2022
  • 0 replies
  • 55 views

MillaZ
Nintex Employee
Forum|alt.badge.img+22
Product: Kryon RPA
Product Version: All
Components: Kryon Robot; Kryon Studio
Environment variables are variables that are typically set by the operating system (OS) such as Windows and are used by the OS for various functions. This article will explain how to use them in Kryon RPA.

Prerequisites: None

Steps:

Kryon robots can retrieve the value of any environment variable for use in an automation.

Using environment variables is straight forward via the advanced command Get environment variable.

 

24045i50317525296EEBCD.jpg

 

This advanced command returns the result of an environment variable and stores it in a regular variable for use within the wizard.

In Windows, a list of environment variables can be found by opening a command prompt and executing the following simple command:

SET
 

24046i2ADC9D1AC676F79A.jpg

Example use case:

Let’s say we need our attended robot to create a file on the desktop independently of the currently logged on user. This can be achieved by retrieving the value of the USERPROFILE environment variable and appending “Desktop” to the end of it. We can then use this dynamically generated path in the Create File advanced command.

 

24047i7F3CD87DA141CC2B.jpg