How to Get the Status of a Particular Job Submitted using Orchestrator API

Hello All,

We are submitting a JOB using Orchestrator API:
https://orchestratorlink.com/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs

{ “startInfo”:
{ “ReleaseKey”: “abcd1234-48asd-asd1-asd123-asdvg”,
“Strategy”: “Specific”,
“RobotIds”: [ 1234],
“JobsCount”: 0,
“Source”: “Manual”
}
}

What we get in return is:

{
@odata.context”: “https://vdcawd04166.logon.ds.ge.com/odata/$metadata#Jobs”,
“value”: [
{
“Key”: “12234324a-1d2b-12a2-1abc-ab1cf12345678”,
“StartTime”: null,
“EndTime”: null,
“State”: “Pending”,
“Source”: “Manual”,
“SourceType”: “Manual”,
“BatchExecutionKey”: “12234324a-1d2b-12a2-1abc-ab1cf1234567b”,
“Info”: null,
“CreationTime”: “2019-12-04T14:10:22.103983Z”,
“StartingScheduleId”: null,
“ReleaseName”: “TestApi_ABCD12345”,
“Type”: “Unattended”,
“InputArguments”: null,
“OutputArguments”: null,
“HostMachineName”: null,
“Id”: 163490
}
]
}

Now I have 2 questions:

  1. Is there a way to automatically get a response when the Job completes/ fails.
  2. How can I get the status of this particular Job using API call:
    I tried using the below but all fail:
    https://orchestratorlink.com/odata/Jobs?$filter=Key eq ‘12234324a-1d2b-12a2-1abc-ab1cf12345678’
    https://orchestratorlink.com/odata/Jobs?$filter=Id eq ‘163490’
    https://orchestratorlink.com/odata/Jobs?$filter=Job/Id eq ‘163490’

Please help.

Thanks,
Vaibhav

Please go thru the API documentation once -

https://docs.uipath.com/orchestrator/reference#building-api-requests

Regards,
Karthik Byggari

3 Likes

Already tried the API Documentation, did not get my specific answer.

Thanks,
Vaibhav

Hello,

Filter on Id but remove the Apostrophes ’ ’ around the ID.
i.e. {{url}}odata/Jobs?$filter=Id eq 163490

1 Like

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