Plug-ins, Webhooks in Azure Functions and Microsoft Dynamics 365 v9.0+
Microsoft has launched many new features with updates of Microsoft Dynamics 365, but one key feature of Dynamics 365 has remained: plug-ins. If you aren’t familiar with this powerful tool used for extending the application, a plug-in is a custom business logic triggered by registered events in the Dynamics 365 pipeline. For example, a custom plug-in would fire to execute an augmented logic whenever a new account is created in Dynamics 365.
Developers depend on plug-ins to execute processes within Dynamics 365, but plug-ins aren’t without limits. When configurable webhooks launched with the latest Dynamics 365 release, it became possible to configure a webhook—similar to a plug-in—to execute in an Azure function.
Webhooks vs. plug-ins
If you’ve always used plug-ins up until now, you are probably wondering why you should opt to use webhooks. Here are two scenarios:
- You run into sandbox plug-in limitations with Dynamics 365 online like:
- Partial trust environments
- HTTP/HTTPS protocols
- DNS-only network access
- Forced ILMerge
- Limited resource usage capabilities
- Additional complications result from keeping integration logic out of the code base or existing .NET assemblies (to facilitate integration with an external system) don’t work in a partial trust environment—even with ILMerge.
How do you write a plug-in using a webhook?
Writing and deploying a plug-in using a webhook in Azure Functions is a simple process. Let’s review an example…
where we will walk you through writing a plug-in in Azure Functions.
Still unsure about these concepts?
Are you ready to start the conversation about Dynamics 365 solutions?
Our Dynamics 365 experts can customize an ERP solution for your business,
ABOUT AKA ENTERPRISE SOLUTIONS
AKA specializes in making it easier to do business, simplifying processes and reducing risks. With agility, expertise, and original industry solutions, we embrace projects other technology firms avoid—regardless of their complexity. As a true strategic partner, we help organizations slay the dragons that are keeping them from innovating their way to greatness. Call us at 212-502-3900!