Skip to main content
Nintex Community Menu Bar

Using Environment Variables


MillaZ
Nintex Employee
Forum|alt.badge.img+21
  • Nintex Employee
  • 652 replies
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

Translate
Did this topic help you find an answer to your question?

0 replies

Be the first to reply!

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings