LogiMes
asked on
Current user in workflow
Is it possible to retrieve the current user of a workflow.
i have tried: workflowProperties.Origina torUser 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.
i have tried: workflowProperties.Origina
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.
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.Workflo w.CreateHi storyEvent ((int)SPWo rkflowHist oryEventTy pe.Workflo wComment, 0, workflowProperties.Origina torUser, "", "Approved with comments: " + feedbackStep, "");
I want to make the log in a history list and that required the username as a SPMember:
workflowProperties.Workflo
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
http://www.sharepointkings.com/2008/08/how-to-get-currently-logged-in-user-in.html