Write plug-ins to extend business processes

Applies to Dynamics 365 for Customer Engagement apps version 9.x

Whenever possible, you should first consider applying one of the several declarative process options to define or apply business logic. More information: Automate your business processes in Customer Engagement apps.

When a declarative process doesn’t meet a requirement, as a developer you have several options. This topic will introduce common options to write code.

A plug-in is custom business logic that you can integrate with Dynamics 365 for Customer Engagement to modify or augment the standard behavior of the platform. Plug-ins are event handlers since they are registered to execute in response to a particular event being fired by the platform.

The following topics describe how to add custom business logic to Dynamics 365 for Customer Engagement through the development and registration of plug-ins. For more information about the run-time execution of plug-ins and the plug-in development framework, see Event Framework.


In this documentation release, the plug-in documentation that is common to all Dynamics 365 deployment types has been moved to the Common Data Service for Apps documentation set. The sub-sections that follow contain only the information specifically related to developing plug-ins for an on-premises or Internet Facing Deployment (IFD). To learn about plug-in development, start by reading the plug-in documentation under Common Data Service (CDS) for Apps, and then if you are targeting an on-premises/IFD deployment, read the sub-topics that follow this topic.

In This Section

Plug-in Development

Developer Guide for Dynamics 365 for Customer Engagement apps

Write Workflows to Automate Business Processes in Dynamics 365 for Customer Engagement apps

Package and Distribute Extensions with Dynamics 365 for Customer Engagement apps Solutions