web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Event Execution priority between crm 2013 plugin and crm database trigger.

(0) ShareShare
ReportReport
Posted on by

Hi,

Which event executes first from the below events.

1)Database trigger

2)crm 2013 plugin.

Thanks.

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Event Execution priority between crm 2013 plugin and crm database trigger.

    Thanks

  • Community Member Profile Picture
    on at
    RE: Event Execution priority between crm 2013 plugin and crm database trigger.

    Thanks.

  • Suggested answer
    Mahendar Pal Profile Picture
    45,095 on at
    RE: Event Execution priority between crm 2013 plugin and crm database trigger.

    Hello,

    Dependent on the event only (please refer: msdn.microsoft.com/.../cc151078.aspx),  but you should not created any db trigger for CRM tables, although technically it is possible but it can lead to data inconsistency and if you face any issue Microsoft won't provide you support.

    Thanks

  • Mahadeo Matre Profile Picture
    17,021 on at
    RE: Event Execution priority between crm 2013 plugin and crm database trigger.

    Hi Kandrap,

    It depends on which event your plugin is.

    If your plugin in on pre-create event, then plugin will be triggered first than database trigger, because record is not yet created into database and plugin are in Business logic layer which comes first than database.

    If plugin is post-create, then record is created into database, then trigger will be triggered and then post create plugin.

    But creating triggers on CRM database is not SUPPORTED way.. you should avoid it.

    hope this will help..

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…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#2
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans