Search This Blog

Monday, January 4, 2016

Custom workflow -get current user detail

If you have any doubt in the post please post comments. I will try to solve your problem.

 public void Execute(IServiceProvider serviceProvider)
       {
           // Obtain the execution context from the service provider.
           // Obtain the execution context from the service provider.
           //Extract the tracing service for use in debugging sandboxed plug-ins.

           IPluginExecutionContext context =
               (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));

           var CurrentUserId =  context.InitiatingUserId;

        }


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.