How to retrieve the faulted jobs from Orchestrator using the API
To retrieve the faulted jobs using the API, follow the steps below:
- Create a new blank process, choose the process name and platform in the Studio, and ensure to install the Uipath.WebAPI.Activities under the manage packages.
- Use the Orchestrator HTTP activities. Using the GET method, mention the folder path “Name of the folder“ and the relative endpoint.
Relative Endpoint "/odata/Jobs?$filter=(State%20eq%20%274%27)"
Here, "State eq 4" refers to faulted jobs.
- Save the output in the text file:
- Similarly, filter all job State Pending:0 Running: 1 Stopping, Terminating: 3,Faulted: 4,Successful: 5,Stopped: 6,Suspended: 7,Resumed: 8.