API - Job Requests - No reference to process?

Hi there,

Below the example response from the API documentation. Is there any reference to the actual process?
‘Key’ doesn’t seem to correspond with process’ keys;
Same for ‘Id’.

Any way to find out the process name or id of each returned job?

{
@odata.context”: “https://cloud.uipath.com/odata/$metadata#Jobs”,
@odata.count”: 13,
“value”: [
{
“Key”: “1c7222dc-416f-4c60-9b17-88262c91768f”,
“StartTime”: “2018-01-15T18:18:02.79Z”,
“EndTime”: “2018-01-15T18:18:47.587Z”,
“State”: “Successful”,
“Source”: “Manual”,
“BatchExecutionKey”: “8c5302a7-8ed3-458a-ab64-34cc72fdd709”,
“Info”: “Job completed”,
“CreationTime”: “2018-01-15T18:18:01.623Z”,
“StartingScheduleId”: null,
“Id”: 125161
},
{
“Key”: “9fbdfca0-d1e5-41c2-abe6-86fe626346a3”,
“StartTime”: “2018-03-02T17:25:35.17Z”,
“EndTime”: “2018-03-02T17:25:46.62Z”,
“State”: “Successful”,
“Source”: “Manual”,
“BatchExecutionKey”: “9b908e73-b564-4022-92cb-9e9f0571c2ec”,
“Info”: “Job completed”,
“CreationTime”: “2018-03-02T17:25:34.087Z”,
“StartingScheduleId”: null,
“Id”: 127283
},
{
“Key”: “e29e472d-5d51-4369-9c15-af867e6dd580”,
“StartTime”: “2018-03-05T18:27:27.123Z”,
“EndTime”: “2018-03-05T18:27:38.593Z”,
“State”: “Faulted”,
“Source”: “Manual”,
“BatchExecutionKey”: “ad498d35-326c-4c6c-89d0-16fb73abd0c8”,
“Info”: “Execution error : System.ArgumentException: The sheet does not exist\r\n at UiPath.Excel.WorkbookApplication.SetSheet(String sheetName, Boolean createNew)\r\n at UiPath.Excel.Activities.ExcelInteropActivity`1.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)\r\n at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)\r\n at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)\r\n at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)”,
“CreationTime”: “2018-03-05T18:27:25.793Z”,
“StartingScheduleId”: null,
“Id”: 127416
}
]
}

Hello!

You can use the $expand clause to get more data about the Process being executed (mind that Processes in the API are referred to as “Releases”): GET /odata/Jobs?$expand=Release.

This page has additional information about OData clauses: Building API Requests

1 Like