How to Find unique job names from Orchestrator that ran in last 60 days

Hello,
I am trying to find the list of processes that ran from orchestrator (Unique) in the last 60 days.
Running a sql query from the database on the jobs table does not return the job names, and wanted to figure out the best way to get that.
Thanks,

@mail2jikku

You can use orchestrator api…

Check the swagger - <orchestratorURL>/swagger/index.html

Get jobs api is what you can use.and select only job mame and from the response take a distinct

Cheers

1 Like

Hi @mail2jikku

Check out this thread

Regards

Hi @mail2jikku
By default there no distinct option is available on the UiPath Orchestrator, Instead try this methodology
Step 1 : Get the UiPath Folders using - odata/Folders API (Get Folders endpoint)
Step 2 : Loop all the folders from the response of Get Folders API
Step 3 : Inside the Loop use get Jobs activity to get all the jobs from that folder - it will give the enumerable variable
Step 4 : Finally, from the output get jobs activity, we can apply LINQ query to get the Unique Jobs. (Linq querry - jobs.Select(Function (x) x.ProcessName).Distinct.ToArray()) (jobs is the output variable from the getjobs activity )

(Note: if you want to get it for a specific timeline use the filter option, while accessing the api ex : CreationTime ge {StartOfDayDateTime})

Hope the solution solves your query

Regards,
Robinnavinraj S