IOrganizationServiceFactoryCreateOrganizationService Method
Updated: November 29, 2016
Applies To: Dynamics 365 (online), Dynamics 365 (on-premises), Dynamics CRM 2016, Dynamics CRM Online
Returns an IOrganizationService instance for the organization that the specified user is a member of.
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Parameters
- userId
-
Type:
Type: Nullable<Guid>. Specifies the system user that calls to the service are made for.
When called in a plug-in, a null value indicates the SYSTEM user and a Guid.Empty value indicates the same user as IPluginExecutionContext. . Any other value indicates a specific system user.
When called in a custom workflow activity, all service calls are made in the IWorkflowExecutionContext. context.
Return Value
Type:Type: IOrganizationService
An organization service factory object.
Microsoft Dynamics 365
© 2016 Microsoft. All rights reserved. Copyright