community
cancel
Showing results for 
Search instead for 
Did you mean: 

Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

How To: Reference Windows User, Paths, or other Environment Variables in a Workflow

Community Data Engineer
Community Data Engineer
Created on

How To: Reference Windows User, Paths, or other Environment Variables in a Workflow

 

Did you know that you can call upon environment variables in Windows from a Formula tool?

 

Prerequisites

 

  • Alteryx Designer

 

Procedure

 

  1. To see the variables you have access to, navigate to Control Panel > System > Advanced system settings > Environment Variables on your Windows machine.

    1.png
  2. Take note of the names of the variables stored there.


    2.png

  3. If you want to include them in a workflow or report created with Alteyrx, just give them a call using the GetEnvironmentVariable() function:

    2019-02-27_16-20-23.png

 

 

 

 

 

Comments
Alteryx Certified Partner

@MattD

Is there a place where all of the Alteryx environmental variables are found?

What I'm talking about are the variables that can be used in Email events (e.g., %User%, %NumErrors%, etc.)

Thanks