Is there a way to get a list of all the recent jobs that have run in the gallery using the API? I know there's commands to get all the jobs for a workflow, and get information about a specific job. What I'm looking for is a command to get say the last 20 job ids that have run on the server.
Solved! Go to Solution.
Could you not just make a cut-off point and take the last 20 jobs that have run?
How would you do that? I'm new to the server API.
Just drop a Sample tool in your flow and take the last/first N rows.
Hi @JohnLight,
Currently I don't believe there is a way, other than first getting every workflow id, then finding all the jobs associated with all those workflows. I think there are plans in future releases to make this simpler by introducing a new endpoint to the API, but as I say for now it's not there.
For example, this is a workflow I have to email me a daily roundup of my failed jobs, but I have to start from my schedules and workflows; rather than from all jobs...
Hope that helps,
Ollie
Gotcha, that is the only way I could think of, just seemed like it was a lot of steps and was unsure if there was that endpoint available. Thanks for your response.