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 Discussions

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

Fetch User Login ID

hemant86
11 - Bolide

Hi Team,

 

Is there a option in Alteryx to fetch user Login ID when one runs the workflow. I need this to maintain a run Logs.

4 REPLIES 4
OllieClarke
15 - Aurora
15 - Aurora

Hey @hemant86 

 

If this is an app/workflow on gallery, then there's some more info in this thread about it: https://community.alteryx.com/t5/Alteryx-Server-Discussions/Accessing-the-logged-in-User-name-in-a-w...

 

If this is a workflow running locally, then you could use the following formula:

GetEnvironmentVariable('USERNAME')

to output the windows username of the person running the workflow (more info here: https://community.alteryx.com/t5/Alteryx-Designer-Knowledge-Base/How-To-Reference-Windows-User-Paths...)

 

Hope that helps,

 

Ollie

hemant86
11 - Bolide

Thanks for your response @OllieClarke . Some how it does not seem to work for me. I have checked variables I have access to in "Control Panel > System > Advanced system settings > Environment Variables " and I see i have access to "USERNAME". Am I missing something?

hemant86_0-1642428492356.png

 

OllieClarke
15 - Aurora
15 - Aurora

@hemant86 your field type is set to 'BOOL', if you write some placeholder text in your text input, and overwrite that, then you should get your expected output.

Alternatively you can create a new string field in your formula tool

OllieClarke_0-1642428837694.png

 

hemant86
11 - Bolide

Thank You @OllieClarke 😊. Got it this time. Cheers!

Labels