We have extended our Early Bird Tickets for Inspire 2023! Discounted pricing goes until February 24th. Save your spot!

Alteryx Designer Knowledge Base

Definitive answers from Designer experts.

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

MattD
Alteryx Alumni (Retired)
Created

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
RodLight
8 - Asteroid

@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

dawnh80
8 - Asteroid

@RodLight Aren't these stored in the C:\Program Files\Alteryx\bin folder?