Difference between revisions of "Find ACP Current User"

m (Max moved page The ACP Diagram to Find ACP Current User without leaving a redirect: Original title is unhelpful)
m
Line 1: Line 1:
 
[[Category: Analytica Cloud Player]]
 
[[Category: Analytica Cloud Player]]
  
=="ACP Current User" Variable==
+
Here is how to get the name (usually email address) of the current user in an ACP model.  (This is a temporary method  that we expect to replace with a more general feature in a future ACP release.)
Add a variable to your model which will show the current user's email address as a result.
 
 
 
 
*Open the model in Desktop Analytica.  
 
*Open the model in Desktop Analytica.  
*Add a variable with identifier Acp_current_user to the model and save it.
+
*When running the model in Analytica, add a variable whose identifier is exactly <code>Acp_current_user:</code>
 
<br>
 
<br>
 
:[[File:ACP current user01.PNG]]
 
:[[File:ACP current user01.PNG]]
 +
When you run the model in ACP, and evaluate Acp_current_user, the result is a text value containing the user's email address -- e.g. 'fbrunton@lumina.com'.
 +
 +
If the user is running an ACP model from an email invite, ACP doesn't know the name/email address of the user, and the result will be 'anonymous'.
  
*When you play the model in ACP, and evaluate Acp_current_user, the result is the user e.g. 'fbrunton@lumina.com' {when playing an email invite the result will be "anonymous"}.
 
 
<br>
 
<br>
  

Revision as of 17:38, 1 September 2016


Here is how to get the name (usually email address) of the current user in an ACP model. (This is a temporary method that we expect to replace with a more general feature in a future ACP release.)

  • Open the model in Desktop Analytica.
  • When running the model in Analytica, add a variable whose identifier is exactly Acp_current_user:


ACP current user01.PNG

When you run the model in ACP, and evaluate Acp_current_user, the result is a text value containing the user's email address -- e.g. 'fbrunton@lumina.com'.

If the user is running an ACP model from an email invite, ACP doesn't know the name/email address of the user, and the result will be 'anonymous'.


ACP current user03.PNG

See Also

Comments


You are not allowed to post comments.