Community Spring Cleaning week is here! Join your fellow Maveryx in digging through your old posts and marking comments on them as solved. Learn more here!

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

4 REPLIES 4
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.