Hi guys
I have a workflow where I want to get the current user name
but, the problem is that "SPContext.Current" returns NULL. Now, I was checking in the web and it says in many sites that it is because it is not running in the same context that the website. How come? My workflow is deployed in my SP website.
I hope you can help me.
I have a workflow where I want to get the current user name
private string getCurrentSPUser() |
{ |
return SPContext.Current.Web.CurrentUser.Name; |
} |
but, the problem is that "SPContext.Current" returns NULL. Now, I was checking in the web and it says in many sites that it is because it is not running in the same context that the website. How come? My workflow is deployed in my SP website.
I hope you can help me.