Hello everyone
I was going through the workflow constant documentation and I find this statement :
"the constant can be updated via a Question tool or modified on the Workflow tab in the Workflow Configuration window."
in this article https://help.alteryx.com/20221/designer/constants
I am not sure, does it mean there is a way to update a "constant" from inside the workflow?
or maybe it means something else!
Solved! Go to Solution.
@amjadmanasra All constants can be found in the Workflow Tab of the configuration pane (when no tool is selected).
Here I've made a new constant and given it the value of 50 - I've also ticked to indicate it is a number
I can change this value if I want by typing something else in.
This constant can be used wherever we have an expression editor (say in a formula tool)
When you have interface tools, these tools become new constants which are accessible in the workflow tab - it's here where you can set default values for them.
Hope that helps,
Ollie
Many thanks, Ollie for the detailed response
I was wondering why the documentation mission it is possible to update constant value using the Question tool, as
the only possible way, I am aware of is using the workflow tab as you also detailed in your response
@amjadmanasra by question tool the documentation means interface tool. Whenever you place one of these on the canvas, you get a new constant with the type 'Question' (as opposed to engine or user) which then can be viewed in the workflow pane.
The value that these constants have can be set in the workflow pane, but they will be overwritten by whatever is selected by the user in the app/macro
Does that make sense?
Many thanks Ollie ,
Crystal Clear
Hi Ollie, thanks for this. I'm curious if there is a way to set these "constants" in the workflow itself?
I.e. Based on some input file, the constants should be set to certain values that will be used downstream instead of needing to link all the downstream tools to the input file.
Hi @Kalpesh1
I don't believe so, but you could wrap your workflow up as a macro, and then feed in constant values - it's maybe pushing the problem 1 step back though...
Got it! Thanks for the response and the option!