How to Retrieve the Faulted Jobs from Orchestrator Using the API

How to retrieve the faulted jobs from Orchestrator using the API

To retrieve the faulted jobs using the API, follow the steps below:

  1. 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.
  2. 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.

Https Request.jfif

  1. Save the output in the text file:

Writeline.jfif

  1. Similarly, filter all job State Pending:0 Running: 1 Stopping, Terminating: 3,Faulted: 4,Successful: 5,Stopped: 6,Suspended: 7,Resumed: 8.