Alteryx Designer Knowledge Base

Definitive answers from Designer experts.
It's the most wonderful time of the year - Santalytics 2020 is here! This year, Santa's workshop needs the help of the Alteryx Community to help get back on track, so head over to the Group Hub for all the info to get started!

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

Alteryx Community Team
Alteryx Community Team
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
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