private void ExecutePlugin(IPluginExecutionContext context, IOrganizationServiceFactory serviceFactory, IOrganizationService service, ITracingService tracing) { var target = (Entity)context.InputParameters["Target"]; var preEntity = (Entity)context.PreEntityImages["PreImage"]; var postEntity = (Entity)context.PostEntityImages["PostImage"]; //YOUR PLUGIN-CODE GO HERE tracing.DebugMessage(target.ToDebug()); tracing.DebugMessage(preEntity.ToDebug()); tracing.DebugMessage(preEntity.ToDebug()); }