Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Run Command Dynamic Arguments

mmoss
5 - Atom
Is there any way to pass variables to run command object? I want to be able to dynamically pull data and feed it into my executable using arguments rather then coding my executable to read data files. 
4 REPLIES 4
kane_glendenning
10 - Fireball
Hi Matt,

There are 2 options here.

1. Create a Macro and use an Action Tool to update parts of the Run Command Tool
2. Use Alteryx to create a Batch file with the arguments in it and then run that with the Run Command Tool. An example of this would involve inputting your command with all arguments to the Run Command Tool, and set the Write Source to ". unthis.bat", and the command to ". unthis.bat". It may take a little playing around to get the output and read results correct for your application but I use this method for parsing pdfs. Below is a screenshot of the Run Command Tool properties



Kane
ronh_allaboutgis
6 - Meteoroid

Hi Kane,

 

Following your example, I was able to get the batch file to run through Curl, any ideas how take the multiple responses and append them to one file? I've added the Curl Append -a option as an argument with no success.

 

Thanks, Ron

OCH
5 - Atom

Hi Kane,

 

actually I tried your first option using an Action tool to update the Run Command, but it is not allowed to use a Macro Input as input of an Action tool to update values for a Run Command ... would you have any further info about how to implement this solution ? (how to pass dynamically command or arguments to run through the Run Command tool)

 

Thanks.

Raghu_s
8 - Asteroid

@OCH  hello! were you able to succeed in updating the Run command arguments? am looking for a similar use case to solve my business usecase. Kindly let me know if any. 

Labels