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.
Solved! Go to Solution.
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
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 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
Thank You @OllieClarke 😊. Got it this time. Cheers!