Service Factory. Create Organization Service Method
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns an IOrganizationService instance for the organization that the specified user is a member of.
public: Microsoft::Xrm::Sdk::IOrganizationService ^ CreateOrganizationService(Nullable<Guid> userId);
public Microsoft.Xrm.Sdk.IOrganizationService CreateOrganizationService (Guid? userId);
abstract member CreateOrganizationService : Nullable<Guid> -> Microsoft.Xrm.Sdk.IOrganizationService
Public Function CreateOrganizationService (userId As Nullable(Of Guid)) As IOrganizationService
When called in a custom workflow activity, all service calls are made in the IWorkflowExecutionContext.UserId context.
Type: IOrganizationServiceAn organization service factory object.