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:
- Is there a way to automatically get a response when the Job completes/ fails.
- 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