Advent of Code is back! Unwrap daily challenges to sharpen your Alteryx skills and earn badges along the way! Learn more now.

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Getting all recent jobs

JohnLight
8 - Asteroid

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.

5 REPLIES 5
jsprh
7 - Meteor

Could you not just make a cut-off point and take the last 20 jobs that have run? 

JohnLight
8 - Asteroid

How would you do that? I'm new to the server API.

jsprh
7 - Meteor

Just drop a Sample tool in your flow and take the last/first N rows. 

OllieClarke
15 - Aurora
15 - Aurora

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...
image.png

Hope that helps,

 

Ollie

JohnLight
8 - Asteroid

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.