Get jobID from Orchestrator

Hi,

I found a way to get the JobId of a Running process by using the Orchestrator API. This solution relies on the bot having access to reading Jobs info in Orchestrator, so if somehow this is not possible, this solution won’t work.

It basically uses an http GET request to get all the Jobs that are Running on the specific machine the bot is running. Then, the ‘key’ value that comes in the JSON response is the JobId of that process.

Here is the GetJobId.xaml (8.6 KB). To deserialize the JSON response, I used the ‘UiPath.WebApi.Activities’ Dependency. So the Missing Activity that might show you comes from that Package.

If you want, you can check all these other handy requests. And if you want to know how to use query parameters in those requests, uiPath follows OData’s URL Conventions. You will find everything you need to make your queries there.

I hope this will be useful. Cheers!

2 Likes