web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    pavanmanideep Profile Picture
    1,331 on at

    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.

  • Saddamk206 Profile Picture
    777 on at

    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.

     

  • Thrishik Akula Profile Picture
    20 on at

    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

  • Martin Donnelly Profile Picture
    1,030 on at

    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.

  • Saddamk206 Profile Picture
    777 on at
  • Nicholas C Profile Picture
    55 on at

    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/

  • CRM Crate Profile Picture
    45 on at

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

  • Suggested answer
    Abhishek Dhoriya Profile Picture
    1,013 on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
SA-08121319-0 Profile Picture

SA-08121319-0 4

#1
Calum MacFarlane Profile Picture

Calum MacFarlane 4

#3
Alex Fun Wei Jie Profile Picture

Alex Fun Wei Jie 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans