Export (0) Print
Expand All

IExecutionContext Members

Applies To: CRM 2015 on-prem, CRM Online

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Base interface that defines the contextual information passed to a plug-in or custom workflow activity at run-time.

The following tables list the members exposed by the IExecutionContext type.

 NameDescription
public propertyBusinessUnitIdGets the GUIDGUID of the business unit that the user making the request, also known as the calling user, belongs to.
public propertyCorrelationIdGets the GUID for tracking plug-in or custom workflow activity execution.
public propertyDepthGets the current depth of execution in the call stack.
public propertyInitiatingUserIdGets the GUID of the system user account under which the current pipeline is executing.
public propertyInputParametersGets the parameters of the request message that triggered the event that caused the plug-in to execute.
public propertyIsExecutingOfflineGets whether the plug-in is executing from the Microsoft Dynamics CRM for Microsoft Office Outlook with Offline Access client while it is offline.
public propertyIsInTransactionGets a value indicating if the plug-in is executing within the database transaction.
public propertyIsOfflinePlaybackGets a value indicating if the plug-in is executing as a result of the Microsoft Dynamics CRM for Microsoft Office Outlook with Offline Access client transitioning from offline to online and synchronizing with the Microsoft Dynamics CRM server.
public propertyIsolationModeGets a value indicating if the plug-in is executing in the sandbox.
public propertyMessageNameGets the name of the Web service message that is being processed by the event execution pipeline.
public propertyModeGets the mode of plug-in execution.
public propertyOperationCreatedOnGets the date and time that the related System Job was created.
public propertyOperationIdGets the GUID of the related System Job.
public propertyOrganizationIdGets the GUID of the organization that the entity belongs to and the plug-in executes under.
public propertyOrganizationNameGets the unique name of the organization that the entity currently being processed belongs to and the plug-in executes under.
public propertyOutputParametersGets the parameters of the response message after the core platform operation has completed.
public propertyOwningExtensionGets a reference to the related SdkMessageProcessingingStep or ServiceEndpoint.
public propertyPostEntityImagesGets the properties of the primary entity after the core platform operation has been completed.
public propertyPreEntityImagesGets the properties of the primary entity before the core platform operation has begins.
public propertyPrimaryEntityIdGets the GUID of the primary entity for which the pipeline is processing events.
public propertyPrimaryEntityNameGets the name of the primary entity for which the pipeline is processing events.
public propertyRequestIdGets the GUID of the request being processed by the event execution pipeline.
public propertySecondaryEntityNameGets the name of the secondary entity that has a relationship with the primary entity.
public propertySharedVariablesGets the custom properties that are shared between plug-ins.
public propertyUserIdGets the GUID of the system user for whom the plug-in invokes web service methods on behalf of.
Top

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft