I am attempting to call an Alteryx Server App Workflow (hereto called 'myfavoriteworkflow') via the command line using cURL. The workflow requires six inputs from the user, which are available on the user's machine in an Access database. The Access database needs to be functional whilst the workflow is running (takes 20 seconds to run once it is first in queue on server, usually less than a minute from start to result, but users need to do a few things while the workflow executes) so I cannot call the workflow from there.
The inputs are currently writing from Access to a file called currentquery.txt. When the text of this file is placed in the Swagger API documentation, successfully executes the workflow. I am able to use cURL to call other aspects of this workflow via cURL (such as getting the questions) successfully. I am attempting to attach this output, however, my company's firewalls prevent it, so I shall paste it here instead:
Access Output: {"questions":[{"name": "input_1","value": "93W4"},{"name": "input_2","value": "1234"},{"name": "input_3","value": "93W4REMSTD"},{"name": "input_4","value": "80105926"},{"name": "input_5", "value": "00487020160"},{"name": "input_6","value": "5236"}], "priority": "string"}
The API Documentation (swagger) indicates that this is the input format for the application:
{"questions": [{"name": "string","value": "string"}],"priority": "string"}
A successful API query I can run (a GET request) looks like this (and successfully returns the questions for the workflow:
Hi @bauml003 ,
I have never built something like this so I don`t have much to say.
But one small detail is related to the "priority": "string".
priority (string): Optional. Specify the priority for running the schedule. Choose from the following options: "Low", "Medium", "High", and "Critical". If not specified, the default value will be ‘Low’.
That doesn`t answer why you can run the workflow on Swagger and not through your curl process, but it is worth trying to fix.
Best,
Fernando Vizcaino
Are you the owner of the workflow?
Yes, I am the owner of the workflow.
There is a bug (fixed in next release) where you will get a 'Not Authorized' response if you are not the owner of the workflow, but you have the ability to run the workflow. Outside of @fmvizcaino's comment on the priority setting, your json looks fine.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 |