UrbanPro
true

Learn MS Dynamics CRM from the Best Tutors

  • Affordable fees
  • 1-1 or Group class
  • Flexible Timings
  • Verified Tutors

Search in

Plugins In Microsoft Dynamics CRM

Sumit Gupta
12/10/2017 0 0

Microsoft Dynamics CRM plug-ins are one of the most commonly used and powerful approaches to extending the application. A plug-in for CRM is custom code, written and compiled in .Net, that is “triggered” when a specific event takes place within a specified CRM entity. The objective of custom plug-in code is to enhance or modify the standard features/behavior of CRM by injecting custom business logic into the execution of nearly any task a user performs in CRM.

Plugin code can be triggered to run when a record is created or updated or perhaps even when a group of records are queried. The Microsoft Dynamics CRM system contains a wide array of these events, commonly referred to as system “Messages”, from which custom code can be triggered. The Messages (which are technically web service operations) are constantly available to run as CRM recognizes events within the platform and sends requests to the respective message for the custom logic to interact with your data.

The plug-in code can be written to run before or after, say, a save operation is completed, thus allowing the developer to work with the context of data when writing the new business logic. This allows a programmer to read and analyze the current data and environment to help design the custom business logic.

When plug-ins are triggered through the messaging system, they can be configured to run in various Steps of the execution pipeline within CRM: pre-event and pre-validation, pre-event and pre-operation, and post-event. The step is the “when” of the plug-in execution. These stages are important factors in designing how a plug-in can create the desired outcome for custom business logic.

Another critical concept behind plug-ins is the Image. An image, created when a plug-in is registered within CRM, is a “snapshot” of an entities data context before (pre-image) or after (post-image) the execution of the operation which triggered the plug-in. Again, access to the fields and values of an image provide the developer with valuable context needed when writing the custom business logic.

While plug-ins are a .Net assembly, they are unique in that are “registered” within the Microsoft Dynamics CRM framework. There are a number of important concepts to understand when writing plug-ins.

  • Understanding data context that is available to plug-ins when run through different messages and at different stages.
  • Using Steps and Images when registering plug-ins.
  • Exception handling within plug-ins (link).
  • Using Impersonation in plug-ins.
  • Challenges with debugging a plug-in.
0 Dislike
Follow 2

Please Enter a comment

Submit

Other Lessons for You

Developing integration utility with Microsoft Dynamics
We all know that the evolution of the technologies has been tremendous in couple of years, leading to development and implementation of the systems in more compact and well integarted way. Each day a...

Architecture of Business Process Flow in Dynamics 365
Business Process Flows till CRM 2016 Every record with Business process flow till Microsoft Dynamics 2016 , used to have two attributes specific to them:- Process ID : Process Stage ID. To set a desired...

Difference between the managed and unmanaged solution in MS Dynamics CRM.
Exactly there is a lot more confusion among all about the differeniation between the Managed and Unmamanged solution in MS CRM, and most think that the managed solution and unmanaged solution is that managed...

Creating/Setting/Admin Center of Dynamics CRM - Office 365
Introduction Dynamics 365 is a cloud service launched by Microsoft. It combines its Cloud CRM and ERP services into a single offering.Microsoft Dynamics 365 is the next generation of intelligent business...

Looking for MS Dynamics CRM Training?

Learn from Best Tutors on UrbanPro.

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you
X

Looking for MS Dynamics CRM Classes?

The best tutors for MS Dynamics CRM Classes are on UrbanPro

  • Select the best Tutor
  • Book & Attend a Free Demo
  • Pay and start Learning

Learn MS Dynamics CRM with the Best Tutors

The best Tutors for MS Dynamics CRM Classes are on UrbanPro

This website uses cookies

We use cookies to improve user experience. Choose what cookies you allow us to use. You can read more about our Cookie Policy in our Privacy Policy

Accept All
Decline All

UrbanPro.com is India's largest network of most trusted tutors and institutes. Over 55 lakh students rely on UrbanPro.com, to fulfill their learning requirements across 1,000+ categories. Using UrbanPro.com, parents, and students can compare multiple Tutors and Institutes and choose the one that best suits their requirements. More than 7.5 lakh verified Tutors and Institutes are helping millions of students every day and growing their tutoring business on UrbanPro.com. Whether you are looking for a tutor to learn mathematics, a German language trainer to brush up your German language skills or an institute to upgrade your IT skills, we have got the best selection of Tutors and Training Institutes for you. Read more