Thursday 12 May 2016

MS Dynamics CRM Plug-In Development


  • To develop a plug-in, download the Microsoft Dynamics CRM 2016 SDK
  • Create new class library project in VS

  • Add reference of 2 dll
              1. Microsoft.Xrm.Sdk.dll
              2. Microsoft.Crm.Sdk.Proxy.dll
  • Adding Refrence
  1. Solution Explorer --> select the project name --> Rightclick and select the Add Reference menu option

   2. Click the Browse button.
   3. Locate the SDK\Bin folder on your local drive and select both Microsoft.Xrm.Sdk.dll and
       Microsoft.Crm.Sdk.Proxy.dll files.


   4. Added dll will show under Refrence folder.


5. Add namespace and implement IPlugin interface.



6. In the case of the IPlugin interface,  implement the Execute method is must.

  public class Class1:IPlugin 
    {
        #region IPlugin Members
        public void Execute(IServiceProvider serviceProvider)
        {
            throw new NotImplementedException();
        }
        #endregion
    }

No comments:

Post a Comment