namespace <%= company %>.<%= customer %>.Crm.Plugins { public class ExamplePlugin : Plugin { // Register when/how to execute public ExamplePlugin() : base(typeof(ExamplePlugin)) { /* RegisterPluginStep(EventOperation.Update, ExecutionStage.PreOperation, Execute) .AddFilteredAttributes(a => a.Name) .AddImage(ImageType.PreImage, a => a.Name); */ } // Execute plugin logic protected void Execute(LocalPluginContext context) { /* var preImage = GetPreImage(context); var targetEntity = (Entity)context.PluginExecutionContext.InputParameters["Target"]; var target = targetEntity.ToEntity(); if (preImage.Name == target.Name) return; target.Description = string.Format("The name of the account has changed from {0} to {1}", preImage.Name, target.Name); */ } } }