In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests after December 31, 2025. Set up your security questions now so you can recover your account anytime, just log out and back in to get started. Learn more here
Start Free Trial

Alteryx Server Discussions

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

How to Get the Job Run ID within the Workflow

JagdeeshN
12 - Quasar
12 - Quasar

Hi,

 

I am currently invoking an alteryx workflow on the Gallery using the 'API POST' method. The return payload contains a job id(different from the app id) which i assume is the 'current instance ID' for that particular application.

 

I now am looking to get this same JOB Instance ID within the workflow itself. i.e the id for the current run in runtime. I need this as a primary key  to be able to make another API call to another application.Is there a way to retrieve that?

 

 

Appreciate all the help.

 

Best,

Jagdeesh Narayanan

5 REPLIES 5
JamesHa
Alteryx Alumni (Retired)

@JagdeeshN 

 


Mongo creates the jobid.  The POST sends a request to create a new document in AS_Queue and then the documentId of that is the jobId.
James Dolan-Hall | Principal Technical Account Manager
support@alteryx.com | community.alteryx.com
Manohar053299
6 - Meteoroid

Is there any function or tool than can give Job ID back within workflow?

francis_oy
8 - Asteroid
I need this function too! Please share if you get any luck or any workaround. Now I have to use gallery Job API to get the JobID and save it in another table.
epbueno
5 - Atom

Hi, did you get any solution for this situation? I need something like that.

MJ
9 - Comet

Seems like there is no way to join the Engine log WorkflowId or RunId back to Mongo, but if anyone knows please share!