Getting Current Machine Name and User Name

Hi Team,
Please guide how to Get Current UserName and Machine Name from Robin Script.
For Example in C# we use Enviornment.MachineName and Environment.UserName , the same way what syntax to be used in Robin?
Any help would be appreciated.
Thanks,
Pravesh

Hello all,

I believe that the below 2 actions do the trick:

System.GetEnvironmentVariable Name: 'USERNAME' Value=> Username
System.GetEnvironmentVariable Name: 'COMPUTERNAME' Value=> Machine
2 Likes

jokoum you are right, thanks for the input.

Indeed the commands return the requested values.
We will update the official documentation.

Best regards,
J.


James Papadimitriou
Technical Evangelist

Thanks jokum for the update

1 Like