You are viewing limited content. For full access, please sign in.

Question

Question

Retrieve current user name in workflow

asked on March 12, 2015

Is there a way in workflow to obtain the user ID of the current user (other than the Initiator)? I would like to add this to the body of an email generated during workflow so the email recipient knows the actual user that generated the email. 

0 0

Answer

SELECTED ANSWER
replied on March 12, 2015

That's a screenshot from Track Tokens because it was an easy way to get the token list. The tokens for the user who satisfies a wait condition in Wait for Entry Change and the Route to Folder/User/Group activities are available in 9.0.2.

0 0

Replies

replied on March 12, 2015

Hi Barry,

 

You can use the Find user activity to match the initiator to a user in active directory based on account name etc.

 

If I I think that's what you mean? frown

0 0
replied on March 12, 2015

Not quite. What I mean is that an entry is routed to a folder where a user (who is not the Initiator) can update metadata and trigger the next step in the process. I want to capture the user name of that user.

0 0
replied on March 12, 2015

If you have a wait condition on the fields being updated, the Wait for Entry Change (and the routing activities) provide the user as a token.

0 0
replied on March 12, 2015

I have a Wait Condition but I've never seen that settings box. Is it in a later version than 9.0.2?

0 0
SELECTED ANSWER
replied on March 12, 2015

That's a screenshot from Track Tokens because it was an easy way to get the token list. The tokens for the user who satisfies a wait condition in Wait for Entry Change and the Route to Folder/User/Group activities are available in 9.0.2.

0 0
replied on March 12, 2015

^^^^^^

What Miruna Said.... laugh

0 0
replied on March 12, 2015

Since Workflow is a service running on a back end server, it is unaware of "Current User" nor can it (Workflow) interact with the user desktop.  It can only detect the user that triggered the event and work on the entry in the repository.  So you can use wait conditions like Miruna suggested and then get the user as a token from that activity.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.