Microsoft Dynamics CRM 2011 – Plugin based Auto Numbering

August 31, 2012

5 comments

The Plugin based Auto Numbering solution suggested by KHeiman here is brilliant.
It can be packaged in Microsoft Dynamics CRM 2011 solution, can be deployed online and take advantage of the plugin built-in transaction support feature.

One thing to note though, is that plugin transaction spans across all execution pipeline events. That means that the transaction will begin on the first pre-event plugin registered for the message/entity combination and will end after the last post-event plugin registered for  the message/entity combination is executed. If you rely on plugins to perform time consuming operations, the transaction lock may last longer that you expect, locking the auto-numbering functionality and slowing down record creation process.

One way to work around this, is to place the  auto-numbering plugin last in the plugins execution order, if the required business functionality allows this. This will shorten the transaction lock to minimum and improve the record creation process efficiency.

Add comment
facebook linkedin twitter email

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

*

5 comments

  1. sosoOctober 3, 2012 ב 12:05 PM

    hi, is there any source code available for this perfect solution?

    Reply
  2. Magic 1April 8, 2013 ב 5:07 PM

    Hi, how can I use this on crm online ?
    Is there a guide for installing plug ins on the online kit ?

    Reply
  3. Magic 1April 8, 2013 ב 5:07 PM

    Hi, how can I use this on crm online ?
    Is there a guide for installing plug ins on the online kit ?

    Reply
  4. Yaniv ArditiApril 28, 2013 ב 1:37 AM

    This solution can be applied in Online deployments as well.
    The SDK describes the registration process, which is similar for On premise and On Line deployements

    Reply