Alteryx Server Discussions

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

Running Alteryx Workflow analytic app on server through API with answer to question (.py)

Mariusz123
5 - Atom

Hi,

 

I want to run Alteryx analytic app on server through API using python script, but firstly I have to answer to question to text box tool (from interface tools). How to provide answer to this question in Python script? I can not find anything in API documentation. 

Mariusz123_0-1675082246226.png

Thank you in advance for any help / suggestions.

4 REPLIES 4
gabrielvilella
14 - Magnetar
  1. Get the questions: /v1/workflows/{appId}/questions
  2. Create the JSON with the answers
  3. Queue the job: /v1/workflows/{appId}/jobs

gabrielvilella_0-1675092355789.png

gabrielvilella_1-1675092426927.png

 

JSON with the values should look like this:

{
"questions": [
{
"name": "Input String",
"value": "abcd"
}
]
}
pinecone
6 - Meteoroid

Hi, 

 

Is this still applicable with the latest version of the API (v3)?

 

 

gabrielvilella
14 - Magnetar

Those endpoints are from v1. But it doesn’t matter what is the version. If you have v3 you can still use all from v1 and v2. 

arihant_jain
5 - Atom

Hi Gabrielviella,

 

Can you explain the process to run Alteryx Workflow analytic app on server through API with answer to question (.py) in bit more detail.

Like what steps should be followed exactly?

 

Thanks.