RemoteExecutionContext RemoteExecutionContext RemoteExecutionContext RemoteExecutionContext Class

Definition

Defines the contextual information sent to a remote service endpoint at run-time.

public ref class RemoteExecutionContext sealed : Microsoft::Xrm::Sdk::IPluginExecutionContext, System::Runtime::Serialization::IExtensibleDataObject
[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/xrm/2011/Contracts")]
[System.Runtime.Serialization.KnownType("GetKnownParameterTypes")]
public sealed class RemoteExecutionContext : Microsoft.Xrm.Sdk.IPluginExecutionContext, System.Runtime.Serialization.IExtensibleDataObject
type RemoteExecutionContext = class
    interface IPluginExecutionContext
    interface IExecutionContext
    interface IExtensibleDataObject
Public NotInheritable Class RemoteExecutionContext
Implements IExtensibleDataObject, IPluginExecutionContext
Inheritance
RemoteExecutionContextRemoteExecutionContextRemoteExecutionContextRemoteExecutionContext
Attributes
Implements

Remarks

A populated RemoteExecutionContext instance is passed from Microsoft Dynamics 365 to a Microsoft Azure Service Bus solution listener. The remote execution context contains the same information that is passed to an asynchronous registered Microsoft Dynamics 365 plug-in plus some additional information.

Constructors

RemoteExecutionContext() RemoteExecutionContext() RemoteExecutionContext() RemoteExecutionContext()

Initializes a new instance of the RemoteExecutionContext class.

Properties

BusinessUnitId BusinessUnitId BusinessUnitId BusinessUnitId

Gets the global unique identifier of the business unit that the entity currently being processed by the event execution pipeline belongs to.

CorrelationId CorrelationId CorrelationId CorrelationId

Gets the global unique identifier for tracking plug-in execution.

Depth Depth Depth Depth

Gets the current depth of execution in the call stack.

ExtensionData ExtensionData ExtensionData ExtensionData

A structure that contains extra data.

InitiatingUserId InitiatingUserId InitiatingUserId InitiatingUserId

Gets the global unique identifier of the system user account under which the current pipeline is executing.

InputParameters InputParameters InputParameters InputParameters

Gets the parameters of the request message that triggered the event that caused the plug-in to execute.

IsExecutingOffline IsExecutingOffline IsExecutingOffline IsExecutingOffline

Gets a value indicating if the plug-in is executing from the Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access client while it is offline.

IsInTransaction IsInTransaction IsInTransaction IsInTransaction

Gets a value indicating if the plug-in is executing within the database transaction.

IsOfflinePlayback IsOfflinePlayback IsOfflinePlayback IsOfflinePlayback

Gets a value indicating if the plug-in is executing as a result of the Microsoft Dynamics 365 for Microsoft Office Outlook with Offline Access client transitioning from offline to online and synchronizing with the Microsoft Dynamics 365 server.

IsolationMode IsolationMode IsolationMode IsolationMode

Gets a value indicating if the plug-in is executing in the sandbox.

MessageName MessageName MessageName MessageName

Gets the name of the Web service message that is being processed by the event execution pipeline.

Mode Mode Mode Mode

Gets the mode of plug-in execution.

OperationCreatedOn OperationCreatedOn OperationCreatedOn OperationCreatedOn

Gets the date and time that the related System Job was created.

OperationId OperationId OperationId OperationId

Gets the global unique identifier of the related System Job.

OrganizationId OrganizationId OrganizationId OrganizationId

Gets the global unique identifier of the organization that the entity belongs to and the plug-in executes under.

OrganizationName OrganizationName OrganizationName OrganizationName

Gets the unique name of the organization that the entity currently being processed belongs to and the plug-in executes under.

OutputParameters OutputParameters OutputParameters OutputParameters

Gets the parameters of the response message after the core platform operation has completed.

OwningExtension OwningExtension OwningExtension OwningExtension

Gets a reference to the related SdkMessageProcessingingStep or ServiceEndpoint.

ParentContext ParentContext ParentContext ParentContext

Gets the remote execution context from the parent operation.

PostEntityImages PostEntityImages PostEntityImages PostEntityImages

Gets the properties of the primary entity after the core platform operation has been completed.

PreEntityImages PreEntityImages PreEntityImages PreEntityImages

Gets the properties of the primary entity before the core platform operation has begins.

PrimaryEntityId PrimaryEntityId PrimaryEntityId PrimaryEntityId

Gets the global unique identifier of the primary entity for which the pipeline is processing events.

PrimaryEntityName PrimaryEntityName PrimaryEntityName PrimaryEntityName

Gets the name of the primary entity for which the pipeline is processing events.

RequestId RequestId RequestId RequestId

Gets the global unique identifier of the request being processed by the event execution pipeline.

SecondaryEntityName SecondaryEntityName SecondaryEntityName SecondaryEntityName

Gets the name of the secondary entity that has a relationship with the primary entity.

SharedVariables SharedVariables SharedVariables SharedVariables

Gets the custom properties that are shared between plug-ins.

Stage Stage Stage Stage

Gets the stage in the execution pipeline that a synchronous plug-in is registered for.

UserId UserId UserId UserId

Gets the global unique identifier of the system user for whom the plug-in invokes Web service methods on behalf of.

Explicit Interface Implementations

IPluginExecutionContext.ParentContext IPluginExecutionContext.ParentContext IPluginExecutionContext.ParentContext IPluginExecutionContext.ParentContext

For internal use only.

Applies to

See also