Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

How CRM internally call plugin

(0) ShareShare
ReportReport
Posted on by 522

Hi,

Can anyone please let me know how  CRM internally call the plugin on any event.

 

Thanks,

Nausher

 

*This post is locked for comments

  • Vin.k.S Profile Picture
    Vin.k.S 95 on at
    RE: How CRM internally call plugin

    If i understood the question correctly the answer is Reflection see Dynamically Loading and Using Types 

  • Suggested answer
    Bas van de Sande Profile Picture
    Bas van de Sande 4,383 on at
    RE: How CRM internally call plugin

    Hi Nausher,

    I received your tweet...

    In order for crm to call a plugin. The plugin need to be registered within crm. Once the plugin is registered, you can register plugin steps. A plugin step is a combination of an entity and amessage name on which the plugin dll reacts (executes your custom code). Per plugin step you can specify in what execution stage the plugin step reacts (pre or post) and whether the plugin step should react synchronously (the plugin kicks in immediately)or asynchronous (for longer running actions.

    Jason already pointed out some good articles

    I hope this helps you, otherwise send me a dm on twitter with your questions.

    Cheers,

    Bas

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How CRM internally call plugin

    Every event or request in dynamics CRM trigger an "Event execution pipeline"  this pipeline mainly contain 4 steps :

    1. Pre-Event :
      1. Pre-validation : where you can inject a pre-validation plugins. (Stage 10)
      2. Pre-operation : where you can inject a pre-operation plugins. (Stage 20)
    2. Main-Event : this is the stage of the main operation (Stage 30 ) where the system execute the request (the core operation), as a developer or a consultant, we can't add any thing to this stage ( at least when we work under the Microsoft  recommendation)
    3. Post-Event : Here we can inject post-operation plugins (Stage 40 ), at this stage the main operation completed and succeeded.
  • Nausher Sayeed Profile Picture
    Nausher Sayeed 522 on at
    RE: How CRM internally call plugin

    Thanks Jason, But i want to know how crm internally create instance of plugin object and use.

  • Suggested answer
    jlattimer Profile Picture
    jlattimer 24,558 on at
    RE: How CRM internally call plugin

    You might want to look at the documentation on plug-ins:

    https://msdn.microsoft.com/en-us/library/gg327941.aspx

    https://msdn.microsoft.com/en-us/library/gg328490.aspx

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,494 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans