Tuesday, July 6, 2021

Write, Register and Debug a plugin step by step in Dynamics 365

 📝Writing, registering, and debugging a plug-in in Dynamics 365 

In this blog, I will be showing How to Write, Register, and Debug a Plug-in in dynamics 365? 
Follow the complete step by step process written below:

Short Overview:
  1. Create a .NET Framework Class library project in Visual Studio
  2. Add the Microsoft.CrmSdk.CoreAssemblies NuGet package to the project
  3. Implement the IPlugin interface on classes that will be registered as steps.
  4. Add your code to the Execute method required by the interface
    1. Get references to services you need
    2. Add your business logic
  5. Sign & build the assembly
  6. Test the assembly
    1. Register the assembly in a test environment
    2. Add your registered assembly and steps to an unmanaged solution
    3. Test the behavior of the assembly
    4. Verify expected trace logs are written
    5. Debug the assembly as needed
Note: If you want to learn in a deep about plugin development click here.
            

Begin:


Writing a Plug-in