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

OAuth Authentication (without using ADAL) to Dynamics 365 using Azure Apps
Here I am going to show without using ADAL(active directory authentication library) how to get the authentication token and how to connect to CRM from a standalone HTML Page using the web-API. I will...

How to use FetchXml in CRM Web API
Here I am going to show how to use FetxhXML query to get the results from CRM Web API. below example shows how to get logged in user Security roles. function getRoles(token) {var req = new XMLHttpRequest();var...

What is M.S.Project ?
MICROSOFT PROJECT contains project work and project groups, schedules and finances.Microsoft Project permits its users to line realistic goals for project groups and customers by making schedules, distributing...

SLA in Microsoft Dynamics CRM 2016
Enhanced SLA Extended for Other Entities in Dynamics CRM 2016 Update 1 Introduction: In earlier versions of CRM, the SLA feature was only applied to the Case Entity. Now, with Dynamics CRM 2016 Update...
A

Anand

1 0
0

MS Dynamic CRM Client Side Scripts
Get the value from a CRM field: var value = Xrm.Page.getAttribute(“CRMFieldLogicalName”).getValue(); Set the value of a CRM field:Xrm.Page.getAttribute(“CRMFieldLogicalName”).setValue(“New...

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