Skip to main content

Posts

Showing posts with the label plugin

Duplicate Detection custom plugin C# Dynamics CRM 2016,2013,2011

using Microsoft.Xrm.Sdk; using Microsoft.Xrm.Sdk.Query; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DuplicateDetection {     public class Plugin : IPlugin     {         void IPlugin.Execute(IServiceProvider serviceProvider)         {             IPluginExecutionContext context             = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));             IOrganizationServiceFactory serviceFactory     = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));             IOrganizationService service     ...