Question

How to get the value of Device-username via variable method in the bot script

  • 11 September 2023
  • 4 replies
  • 119 views

Badge +1

The value of device can be got by system variable $System:Machine$, but for username, what’s the variable name?


4 replies

Userlevel 6
Badge +15

Hi @Vicky1989 ,

Please use the below variable for get the system username,

$SystemVariablesPackage:UserName$

Badge +1

 

it shown ‘invalid expresion’

Try using it like this

 

Badge +1

Try using it like this

 

this is the username that login in to control room and run bots, what I want to get is the username that login in to bot running device. now I have a better way to achieve it. Use action ‘System: Get environment variable’ and then assign to a custom variable.

 

Reply