Alteryx Server Discussions

Find answers, ask questions, and share expertise about Alteryx Server.
The Expert Exam is now live online! Read about the specifics and what it took to bring it to life in the blog by our very own Elizabeth Bonnell!

Server workflow runner identification

Highlighted
8 - Asteroid

Hi

 

Does anyone know how to identify the runner of a WF as part of the WF process? We want to have a WF read the runners name and include that in a dynamic file name output.

 

I found a simple solution using the [Engine.TempFilePath] field but this only works when the WF is run in Designer. We need to identify the runner when the WF is run on Server as well.

 

Thanks,

 

Kevin

Highlighted
13 - Pulsar
13 - Pulsar

When you say "WF run on the Server", do you mean the user is running an app in the Gallery and you want to capture the user's identity?

Highlighted
8 - Asteroid

Hi, yes that is correct. Not to worry though this has now been answered for us by our local provider, using the "__cloud:userID" script.

 

Thanks.

 

Kevin

Highlighted
13 - Pulsar
13 - Pulsar

Yep, that's what I was going suggest 🙂

Highlighted
5 - Atom

I feel as though I am missing something.

 

I have read every post I could find regarding __cloud:UserId. I have downloaded multiple example workflows (including ones posted by you mbarone) and tried running those. I have tried creating my own versions. I've tried running the WF in the Designer as well as from the gallery. I've made sure the __cloud:UserId is the name in the Annotation setting. I've made sure the dummy column in the formula is a string type. I've made sure the @expression was highlighted in the Action tool, and I've tried that with both replace a specific string selected and not selected. When selected I've tried it with both the quotes included and not included. Every time I get either a NULL return, or a blank return.

 

I am not sure what else I can try.

 

The Designer version I am running is 2019.2.5.62427. Running as non-elevated. Does this need to be running as elevated to work?

Highlighted
13 - Pulsar
13 - Pulsar

Elevated vs. Non shouldn't be an issue.  Can you mock up a workflow and attach it to this thread, or post a bunch of screen shots?  That might help trouble shoot.

Highlighted
Alteryx
Alteryx

Note that this option does not work in directly in Designer; the value is only supplied by Gallery as rendered in a browser. You will get empty or null value just running locally in Designer. 

 

Here's how I have my App set up:

ExampleAppSetup.png