This site uses different types of cookies, including analytics and functional cookies (its own and from other sites). To change your cookie settings or find out more, click here. If you continue browsing our website, you accept these cookies.
Thank you so much for your help, but i have another question :$ hope you can guide me :
We are looking a way to automate and integrate all our process using an application call Stone Branch.
Behind the scene it will have access into the server as a command shell.
Stone Branch has an agent installed on the server and using Python let us code as if we were using a command prompt into the server
As a proof of contact our first step was trigger a simple workflow on a on the command prompt inside the server and it worked.
But the prerequisites is to have the workflow saved at the same path that the executable is, this is not right since the default path for Alteryx to save the workflows is: E:\ProgramData\Alteryx\Service\Staging\XProcessCache\ID\WorkFlow.yxmd
EXAMPLE - So at this point in order to trigger AudioFilesTransfer workflow we will need to write something like below on the command line:
It sounds like you need to be able to dynamically update the name of a .yxmd and the output path of that workflow with the ID value so everything is contained within the same folder. This could be achieved with some XML editing.
Create a wizard (app) that inputs a template workflow as text (input the .yxmd, read as text using a \0 delimiter), then edit the XML of the workflow and make the ID updates you need. Then, use the Output tool to write the updated XML as a new filepath that also uses the ID value. A Block Until Done and Run Command tool at the end of this workflow could then run this new workflow.
Now your powershell will be running this new wizard with an argument that is the ID value that it will use to update the contents and name of the workflow before running it. The Alteryx Command Line documentation above includes a section on how to pass question values to the engine when running a wizard.