Quantcast
Channel: Forum CRM Development
Viewing all articles
Browse latest Browse all 1000

Get UserId from IOrganizationService?

$
0
0

Given the IOrganizationService "service" created in a workflow as shown below, is there a way to get back the context.UserId?  A WhoAmIRequest returns SYSTEM.  The workflow is an organization scope workflow.

Thanks.

 

                IWorkflowContext context = executionContext.GetExtension<IWorkflowContext>();
                IOrganizationServiceFactory serviceFactory = executionContext.GetExtension<IOrganizationServiceFactory>();
                IOrganizationService service = serviceFactory.CreateOrganizationService(context.UserId);

 



Viewing all articles
Browse latest Browse all 1000

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>