With Plug-ins we can extend or customize the functionality of the Microsoft Dynamics CRM platform by integrating the custom business logic (code). Plug-ins are triggered by the message with which they're registered on the Microsoft Dynamics CRM platform.
For example, we can register a Plug-in to perform some business logic every time a Flight record is created. We can also define whether to run the business logic BEFORE the Flight record is saved in the CRM organization database (Pre-Event) or AFTER the Flight record is saved in the CRM organization database (Post-Event).
Notice that some of the business logic can also be accomplished with JavaScript, which is a Client-Side programming method, such as data validation or user interface design, and so on. The Client-Side script depends on the user's browser and is triggered by the CRM form events. By contrast, the plug-ins are triggered by the platform events—that is, importing bulk Flight records can trigger Plug-in events, but doesn...