Link to home
Start Free TrialLog in
Avatar of LogiMes
LogiMes

asked on

Current user in workflow

Is it possible to retrieve the current user of a workflow.
i have tried: workflowProperties.OriginatorUser but it's only giving me the user started the workflow not the user running it.

It a multiapproval workflow. I want to log to the history if a user make any comments to a document approval. The username on the user making the comment should be shown in the History List.
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Avatar of LogiMes
LogiMes

ASKER

But the i get the username as a string. But how do i get it as a SPmember??
I want to make the log in a history list and that required the username as a SPMember:
workflowProperties.Workflow.CreateHistoryEvent((int)SPWorkflowHistoryEventType.WorkflowComment, 0, workflowProperties.OriginatorUser, "", "Approved with comments: " + feedbackStep, "");


ASKER CERTIFIED SOLUTION
Avatar of Jamie McAllister
Jamie McAllister
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial