Free Trial

Alteryx Server Discussions

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

How to run the workflow which is in Collection from Alteryx API?

ashish677
5 - Atom

I am able to run Alteryx workflow using API but only the ones which I have uploaded to the Gallery. I am not able to run the ones which other users have uploaded.

 

I am using the Alteryx API after authorization like below for POST request:

 

"https://{hostname}/webapi/v1/workflows/{WorkflowID}/jobs"

 

This runs the workflow which I have uploaded to the gallery absolutely fine. The ones which other user have uploaded, it gives "Access Denied" in the response.

 

Is it possible to do the above task?

3 REPLIES 3
gawa
16 - Nebula
16 - Nebula

The WF can be run by API with API key of the user who uploaded that WF. Even if the WFs are shared in the Collection, it does not allow others to run the WFs by API.

If my understanding is correct, only workaround was to share the same subscription with collaborators and use the API key of that subscription. By doing so, WF can be run by API by multiple persons.

 

Please note that one user can belong to only one subscription at time. Shifting to other subscription may cause unwanted trouble to the existing WFs that were uploaded via the previous subscription they belonged to before.

ashish677
5 - Atom

Thank you for the reply.

The idea to share the same subscription to different people might not be ideal as you mentioned as well.

 

The problem in hand is:

Is there a way to run bunch of workflows out of all the workflows in a collection? It need not be an API way.

gawa
16 - Nebula
16 - Nebula

@ashish677 

There are 3 method to run WF:

1) Manually run on Gallery

2) Schedule running

3) API Running

If you just have to run multiple WFs periodically, schedule running could be an option. If you wanna run Wfs on demand, it's not the case though.

 

Actually our company is facing the same issue as yours, and cannot come up with better solution yet.