Hello All,
Was wondering if there was a way to pass a Text input value to Run command argument. I.e. I have %Question.ControlParam.File% to pull an argument from a macro input, what would be the equivalent to do it from the Text input?
Any assistance will be most helpful!
Thanks for reading,
Yas
Solved! Go to Solution.
Are you using action tools? You can use an action tool to send anything into a run command line either in a batch macro or in an app.
Thanks @apathetichell for the prompt reply.
I can use the update tool but I need to check whether the file exists before I run the command tool. So I have a batch macro that takes a directory, checks if it exists, if it doesn't, it runs the run command to make the directory. However, the run command tool runs regardless if the file exists or doesn't.
Do you know if I can use the update tool to update batch files?
put the command tool in a batch macro by itself and have the macro execution at the end of the filter tool set to run on True...
Certain tools including command run even if there is no input - to avoid executing you need to use conditional routing so either only call the macro (I said batch that way you can pass an argument in but it doesn't have to be) if the file doesn't exist (True Anchor to test file !exist) but doesn't run otherwise.
do you have any comments on This. I remember you using cmd tool and passing file name to cmd tool to copy and rename.
Hi @atcodedog05 Thx for reaching out. @Yas , what are you intending to pass through the cmd string? A user input value?
Thanks @apathetichell !
Such a simple solution that I completely overlooked. Thanks all that replied!
Thanks for replying. I was trying to pass through a filepath. @apathetichell reply worked! thanks again
@YasIt's actually not that intuitive - I explore conditional routing and had to do this a few times. I asked on Designer about tools that run independently but I don't think Alteryx has ever provided a full list. R/Python/Count Records/Field Info/Command don't need records to run.
+ Generate Rows