Free Trial

Alteryx Designer Desktop Discussions

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

assign a constant to multiple workflow. Use command line/ .bat file to assign constants

Dylan777
5 - Atom

I usually configure my input and output directory with a constant

For example:

%my_constant_path%/specific_standard_path/file_name.csv

 

%my_constant_path% is the constant I assign. 

 

For each project, I am using like 10 of this standard workflow. Each project would use a different work directory, so I will have to assign a different value to this constant for each project.  

 

However, I don't want to configure 10 times for 10 workflows for each project. I wonder if I can assign the same value as the constant to all the workflow at once. I am researching on whether I write a script (maybe a .bat file) to assign a value to %my_constant_path% for multiple workflows all at once. These will also potentially help me with another improvement I have in mind.

 

I will try to avoid turning all my workflows into apps because each workflow is quite complicated and will need a lot of work to convert any workflow into an app. 

 

 

10 REPLIES 10
ChrisTX
16 - Nebula
16 - Nebula

As far as I know, you can't set a user constant using workflow tools. 

 

You could use chained apps: in the first workflow, save a value to a text file.  Then in the 2nd workflow read the value in.

 

If you want to use a drop-down, see this post:

Dynamic drop down using input file

https://community.alteryx.com/t5/Alteryx-Designer-Discussions/Dynamic-drop-down-using-input-fille/td...

 

Chris

 

Labels
Top Solution Authors