Posts

Showing posts with the label Data Context

Understand the Data Context Passed to a Plug-in (Microsoft Dynamics CRM)

In this blog i am going to share the definition and meaning of Data Context passed to a Plug-in (Microsoft Dynamics CRM) ==>  IPluginExecutionContext contains information that describes the run-time environment that the plug-in is executing in, information related to the execution pipeline, and entity business information. The context is contained in the System.IServiceProvider parameter that is passed at run-time to a plug-in through its Execute method. C# // Obtain the execution context from the service provider.             IPluginExecutionContext context = (IPluginExecutionContext)                 serviceProvider.GetService(typeof(IPluginExecutionContext)); When a system event is fired for which a plug-in is registered, the system creates and populates the context and passes it to a plug-in through the above mentioned classes and metho...
go to top image