Missed the Q4 Fall Release Product Update? Watch the on-demand webinar for more info on the latest in Designer 24.2, Auto Insights Magic Reports, and more!
Free Trial

Alteryx Designer Desktop Discussions

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

Local Variable

N0SHEEN
6 - Meteoroid

Hi ,

Can I create a local variable that later can be used to filter values multiple time. e.g. var=26, that var can be used multiple time in a work flow to  filter values (that way I don;t have to change values manually multiple time in a work flow. Also every week I needs to update that var in my workflow. How can I go about this

Thanks,

4 REPLIES 4
ChrisTX
16 - Nebula
16 - Nebula

Click on a blank area of your workflow then under Workflow Configuration click the tab for Workflow.

 

Add a constant with type User.  If the value is numeric, check the box under the # column.  The value will be read-only; the value cannot be updated by the workflow.

 

To use the value in a formula or filter, use the syntax [User.ConstantName]

 

Annotation 2020-06-15 122517.png

Annotation 2020-06-15 122518.png

 

Chris

N0SHEEN
6 - Meteoroid

Thanks Chris , I just figured that out... 🙂

MelisaCapri
7 - Meteor

Thanks for posting this. Is there a way to use a stored path variable in the Connect a File or Database field of an Input Data object?

I stored the path as a user variable

vSourceFolder = "C:\Users\mc13144\Documents\Development\Source\"

 

, but I am unclear how to use it as part of the path. I tired the following, both with and without the quotes

[User.vSourceFolder] + Static\EECrosswalk.xlsx

[User.vSourceFolder] + "Static\EECrosswalk.xlsx"

MelisaCapri_0-1595350807266.png

 




patrick_digan
17 - Castor
17 - Castor

@MelisaCapri You can reference shortcuts. Your input tool would have something like this:

%User.vSourceFolder%Static\EEcrosswalk.xlsx

 

See the bottom of the help page here for documentation: https://help.alteryx.com/current/designer/constants

 


@MelisaCapri wrote:

Thanks for posting this. Is there a way to use a stored path variable in the Connect a File or Database field of an Input Data object?

I stored the path as a user variable

vSourceFolder = "C:\Users\mc13144\Documents\Development\Source\"

 

, but I am unclear how to use it as part of the path. I tired the following, both with and without the quotes

[User.vSourceFolder] + Static\EECrosswalk.xlsx

[User.vSourceFolder] + "Static\EECrosswalk.xlsx"

MelisaCapri_0-1595350807266.png

 





 

Labels
Top Solution Authors