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.
Question
Question
Answer
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.
Replies
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?
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.
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.
I have a Wait Condition but I've never seen that settings box. Is it in a later version than 9.0.2?
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.
^^^^^^
What Miruna Said....
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.