Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

MS CRM Plugin Execution Pipeline

(0) ShareShare
ReportReport
Posted on by 50

Hi,
I have created Duplicate detection custom plugin for Account entity, It is working fine when I registered this plugin on stage 40(Post operation). I just want to understand, Why it is not working in Stage 10 and 20. It is allow me to save 2 duplicate records, and third time it is identifying duplicate.

Let me know if you have any questions.

Thank you

Regards,

Sahul Hameed

*This post is locked for comments

  • Suggested answer
    Abhishek Dhoriya Profile Picture
    Abhishek Dhoriya 1,011 on at
    RE: MS CRM Plugin Execution Pipeline

    Microsoft Dynamics 365 Event Framework With Dynamics 365 for Customer Engagement apps you have the ability to extend or customize the functionality of the server through the integration of custom business logic (code).

    Microsoft Dynamics 365 Event Framework

    Microsoft Dynamics 365 Plugin Event Execution Pipeline

    In this article we will see What is Microsoft Dynamics 365 Plugin Event Execution Pipeline? 

    Please mark this Answer as VERIFIED, if you find this video article helpful.

  • CRM Crate Profile Picture
    CRM Crate 45 on at
    RE: MS CRM Plugin Execution Pipeline

    Hi, you can use this excellent knowledge rich article : www.crmcrate.com/.../

  • Nicholas C Profile Picture
    Nicholas C 55 on at
    RE: MS CRM Plugin Execution Pipeline

    For anyone interested here is a great explanation about the ins and out of Dynamics CRM Plugins -> https://www.msdynamicsblog.com/what-is-a-dynamics-crm-plugin/

  • Saddamk206 Profile Picture
    Saddamk206 777 on at
  • Martin Donnelly Profile Picture
    Martin Donnelly 1,016 on at
    RE: MS CRM Plugin Execution Pipeline

    If you were to run your own duplicate detecting algorithm against all other accounts, you COULD execute it in the pre-operation stage using the "target" data and blocking the create.  You can't, however, use the OOB dupe detector without two accounts.  Hence, that would require waiting for stage 40.

  • Thrishik Akula Profile Picture
    Thrishik Akula 20 on at
    RE: MS CRM Plugin Execution Pipeline

    Hi Saddam,

    Would be better if you could mention what kind of events(sync/async) can and cannot be used during all these stages. Would help many of us to learn in depth.

    Thanks

  • Saddamk206 Profile Picture
    Saddamk206 777 on at
    RE: MS CRM Plugin Execution Pipeline

    Pipeline stages:-

    1. Pre-Validation

    2. Pre-Operation

    3. MainOperation

    4. Post-Operation

    1. Pre-Validation:- security checks being performed to verify the calling or logged on user has the correct permissions to perform the intended operation.

    2. Pre-Operation:- execute before the main system operation. Plug-ins registered in this stage are executed within the database transaction.

    3. MainOperation:- main operation of the system, such as create, update, delete, and so on. No custom plug-ins can be registered in this stage.

    4. Post-Operation :- plug-ins which are to execute after the main operation. Plug-ins registered in this stage are executed within the database transaction.

     

  • Suggested answer
    pavanmanideep Profile Picture
    pavanmanideep 1,329 on at
    RE: MS CRM Plugin Execution Pipeline

    Hi Sahul,

    As duplicate detection would only be identified after Account record creation, this wont work in stages 10, 20 of plugins. PFB.

    Event

    Stage name

    Stage number

    Description

    Pre-Event

    Pre-validation

    10

    Stage in the pipeline for plug-ins that are to execute before the main system operation. Plug-ins registered in this stage may execute outside the database transaction.

     Security Note

    The pre-validation stage occurs prior to security checks being performed to verify the calling or logged on user has the correct permissions to perform the intended operation.

    Pre-Event

    Pre-operation

    20

    Stage in the pipeline for plug-ins that are to execute before the main system operation. Plug-ins registered in this stage are executed within the database transaction.

    Platform Core Operation

    MainOperation

    30

    In-transaction main operation of the system, such as create, update, delete, and so on. No custom plug-ins can be registered in this stage. For internal use only.

    Post-Event

    Post-operation

    40

    Stage in the pipeline for plug-ins which are to execute after the main operation. Plug-ins registered in this stage are executed within the database transaction.

    You can refer to https://parthimscrm.wordpress.com/2013/07/05/duplicate-detection-plugin-crm-2011/ for more details.

    Thanks.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

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,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans