How to get the connected Orchestrator URL and Robot ID from the context object in version 2018.4.1

From within the custom activity, how can I get the Orchestrator and machine which the process is connected to? The same information we have in the UiPath Robot settings?

1 Like

Hi man,

Have you found the answer for this? How to get the robot ID?


Not yet.

Check this out.


I will try later, but sounds like it`s gonna work.

Yet, that looks to work for the purpose of getting the Robot ID through UiPath. For my goal which is to get the environment which Orchestrator is connected without the need of passing parameters to the custom activity (RobotID or whatever), I`m thinking about reading the UiPath.settings file and then extract the information from NuGetServerURL.