📝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:
- Create a .NET Framework Class library project in Visual Studio
- Add the
Microsoft.CrmSdk.CoreAssemblies
NuGet package to the project - Implement the IPlugin interface on classes that will be registered as steps.
- Add your code to the Execute method required by the interface
- Get references to services you need
- Add your business logic
- Sign & build the assembly
- Test the assembly
- Register the assembly in a test environment
- Add your registered assembly and steps to an unmanaged solution
- Test the behavior of the assembly
- Verify expected trace logs are written
- Debug the assembly as needed
Note: If you want to learn in a deep about plugin development click here.
Begin:
Writing a Plug-in
Writing a Plug-in