Hi,
Is there anyway to get the state of running job using API?
I want status of job whether it is in Pending or Running or successful or faulted. Can we get this status using API?
Hi,
Is there anyway to get the state of running job using API?
I want status of job whether it is in Pending or Running or successful or faulted. Can we get this status using API?
Yes, you can use the API to get the status of jobs. For you you have to use the endpoint as
orchestratorURL/odata/Jobs
Welcome to the UiPath Community ![]()
Definitely you can do it. Use Swagger to explore all the possibilities.
You can use these endpoints for Job related queries.
Thanks,
Ashok ![]()
Welcome to the community
As suggested you have api for all of it…it has all details like what should eb the endpoint body etc
<orchestratorurl>/swagger/index.html will give the swagger to you to check all the details
For accessing the api from external resources you need to setup ans external application and get clientid secret etc
Orchestrator - External Applications (OAuth).
Cheers
This provides you with the jobs named ‘EDI’ that started within the last 30 minutes (for example). Then, you can check their state. Of course, you’ll need to adapt this for your needs.
“/odata/Jobs?%24filter=ReleaseName%20eq%20’EDI’%20and%20StartTime%20gt%20” + DateTime.UtcNow.AddMinutes(-30).ToString(“yyyy-MM-ddTHH:mm:ss:fffffffZ”)