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
11 - Bolide

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

3 REPLIES 3
JamesHa
Alteryx
Alteryx

@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 |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
7 - Meteor
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.