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 ...
Get Microsoft Dynamics CRM 2013 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.