O'Reilly logo

Microsoft Dynamics CRM 2013 Unleashed by Marc Wolenik

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

IExecutionContext

From this object, you can query all the property values associated with the entity and event context where the method is being executed.

This class contains the following properties:

BusinessUnitId

This property returns the GUID (global unique identifier) of the business unit of the user making the request. Notice that this is not the GUID of the entity’s record. To return the GUID of the entity’s record, there is a new property called PrimaryEntityId.

CorrelationId

This property returns the GUID of the plug-in event instance. Every time the event fires, it generates a new GUID that can be read from this property.

You can use this property for tracking and logging purposes, especially when you have more than one plug-in ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required