Free Trial

Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
SOLVED

Get and use email address of user running app

mcha54
8 - Asteroid

Hi there, is there a way to get the email address of the user running an app on the gallery?

I was thinking of adding a checkbox to each workflow/app that would indicate whether they want an email notification (Event after run w or w/o errors), but not sure how to dynamically get their email address.

 

 

4 REPLIES 4
KaneG
Alteryx Alumni (Retired)

Hi @mcha54,

 

The email address may be more difficult, as I'm not sure where you will get that reference from. However, you can get the UserID of the logged in user. This is by using a hidden TextInput function (__cloud:UserId).

 

See this blog post for more information on how to use it.

mbarone
16 - Nebula
16 - Nebula

Hi @mcha54 ,

 

Yes, this is possible by joining the __cloud:UserID to a stream that utilizes the Mongo Input tool.  See attached.

DawnR
8 - Asteroid

I have workflows that do this, it's really necessary to pass through the user ID of the person running the app or workflow, but I can't seem to get it to work in version 2019.3. Am I alone in having this problem? @KaneG have you tested this for 2019.3 or is there a new improved way to do the same thing?

 

 

DawnR
8 - Asteroid

UPDATE: This is actually working fine. I did have the interface tool set up correctly, but forgot that our QA instance has different user ID's than our PROD instance and so it was not matching and returning results.

DawnR_0-1572011167704.jpeg