Export (0) Print
Expand All

IPluginExecutionContext Interface

banner art

[Applies to: Microsoft Dynamics CRM 4.0]

Defines the contextual information passed to a plug-in at run-time.

The IPluginExecutionContext interface exposes the following members.

Instance MethodDescription
CreateCrmServiceReturns an instance of the CrmService Web service.
CreateMetadataServiceReturns an instance of the MetadataService Web service.

Instance PropertyDescription
BusinessUnitIdGets the global unique identifier of the business unit that the entity belongs to.
CallerOriginGets the source of the event - the Web application, Asynchronous Service, Web service, or offline playback.
CorrelationIdGets the global unique identifier for tracking plug-in execution.
CorrelationUpdatedTimeGets the updated time used for infinite loop detection.
DepthGets the current depth of execution in the call stack.
InitiatingUserIdGets the ID of the system user account under which the current pipeline is executing.
InputParametersGets the parameters of the request message which triggered the event.
InvocationSourceGets a value indicating whether the plug-in was executed by a parent or child pipeline.
IsExecutingInOfflineModeGets whether the plug-in is executing from the Microsoft Dynamics CRM for Outlook with Offline Access while it is offline.
MessageNameGets the name of the Web service message that is being processed by the event execution pipeline.
ModeGets the mode of plug-in execution.
OrganizationIdGets the global unique identifier of the organization that the entity belongs to and the plug-in executes under.
OrganizationNameGets the name of the organization that the entity belongs to and the plug-in executes under.
OutputParametersGets the properties of the response message which is returned as part of pipeline execution.
ParentContextGets the execution context from the parent pipeline. This property is set when a plug-in executes in a child pipeline.
PostEntityImagesGets the properties of the primary entity after the core platform operation has been completed.
PreEntityImagesGets the properties of the primary entity before the core platform operation has occurred.
PrimaryEntityNameGets the name of the primary entity for which the pipeline is processing events.
SecondaryEntityNameGets the name of the secondary entity that has a relationship with the primary entity.
SharedVariablesGets the custom properties that are shared between plug-ins.
StageGets the stage in the execution pipeline that the plug-in is registered for.
UserIdGets the global unique identifier of the system user for whom the plug-in invokes Web service methods on behalf of.

Requirements

Namespace: Microsoft.Crm.Sdk

Assembly: Microsoft.Crm.Sdk.dll

See Also

Concepts

Reference


© 2010 Microsoft Corporation. All rights reserved.


Show:
© 2014 Microsoft