Get Inspire insights from former attendees in our AMA discussion thread on Inspire Buzz. ACEs and other community members are on call all week to answer!

Alteryx Designer Desktop Knowledge Base

Definitive answers from Designer Desktop 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?