How to store robot name and workspace name in a variable?

Can i store my robot name and workspace name in a variable ?
image
this image contains workspace name.
image

Hi @Mithesh_Reddy_Bolla

Could you please provide a bit more detail about your use case?

Hi @Mithesh_Reddy_Bolla,

Please try below, this should help.
MachineName = Environment.MachineName //Returns the machine name

Also, pasting few more syntaxes around getting details on user, process etc.

Environment.UserDomainName
Environment.UserName
Process.GetCurrentProcess.Id.ToString

And for workspace, I believe fetching user name etc should help as workspace name will always be corresponding to the user logged in.

Hope this helps.

Regards
Sonali

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.