Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Custom Auto-number Field

Posted on by Microsoft Employee

Hello,

I did create a custom field and a plugin to generate an auto-number but i am wondering if this plugin could be triggered by multiple user at the same time that it will give multiple record the same number

Can this happen?

If yes what ideas there is to avoid this, i have an idea to execute a fetch after the record is created and check if the number exists if so i will increment the number.

Thanks, best regards

*This post is locked for comments

  • Suggested answer
    razdynamics Profile Picture
    razdynamics 17,304 User Group Leader on at
    RE: Custom Auto-number Field

    Hi Guys, you can use my Autonumber solution here are the full instructions

    http://www.crmconsultants.co.uk/free-autonumber-solution-for-microsoft-dynamics-crm/

    Best Wishes, Raz

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Auto-number Field

    Yes me too. I can't find how to put if in the entity and configure it.

    Can somebody help?

    The blog celedonpartners.com/.../celedon-autonumber-solution-for-dynamics-crm   doesn't show you the step to use it.

    Thanks

  • Paul W Profile Picture
    Paul W on at
    RE: Custom Auto-number Field

    Hi Guido,

    I have been searching for Auto Numbering and have seen that you and others mention Celedon. I have downloaded this plug in but I cannot seem to find any instructions on how to install / import this into CRM Online. Could you give me a hint? , thanks Paul

  • razdynamics Profile Picture
    razdynamics 17,304 User Group Leader on at
    RE: Custom Auto-number Field

    Hi Mahmoud, Yes there is a new Web API in CRM 2016 but I  believe Upgrading to CRM 2016 shouldn't cause you any issues with the Autonumber solution.  The Only thing that might need to be updated is the OganisationService which is not a problem, The good thing about source projects is that it will be updated very quickly, and Autonumber is used by ALOT of customers so im sure the code will be tested for CRM 2016 very soon.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Auto-number Field

    Hi Raz

    I've downloaded the solution and tried it and it's great, it give you the option that purchased solution does and it's for free to, when i was looking for a solution the one that does this functionality are for sale, but i have one more thought am i able to upgrade a system that use this solution to a newer version (this solution work only for a specific version e.g ms crm 2015)

    taking the example of upgrading ms crm 2015 to ms crm 2016, thanks a lot

    Best regards

  • Suggested answer
    razdynamics Profile Picture
    razdynamics 17,304 User Group Leader on at
    RE: Custom Auto-number Field

    Hi Mahmoud

    Yes the Plugin should use Impersonation but Autonumber should be triggered on an event via a Workflow Activity.  You should Also configure your Autonumber solution with configuration Entitys so you don't have to store all the logic in the plugin. Yes you will need to Use Locking to prevent Duplicate Numbers if you have a High Volume of requests. I personally Advise that you use the Opensource Autonumber Solution Plugin developed by Celedon Partners which you can download from the following url, as it follows all the guidelines for Autonumber so you don't have to re-invent the wheel;

    github.com/.../Celedon-Autonumber-RTM

    I Hope this Answers your Question :)

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Auto-number Field

    Hello Guido,

    Thanks for responding, i did find few solutions ,but i wanted to control the auto-numbering process, i will also look for the real time workflow that you mentioned

    Best regards

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Auto-number Field

    Hello Mohit,

    thanks for responding, i did read the blog in the link, those are really good idea but we don't wont to create an external resource but i will keep those options in mind.

    Best regards

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Custom Auto-number Field

    use lock in your plugin in that block

    Please see the below link :

    www.powerobjects.com/.../auto-numbers-in-mscrm

    If it helps then Mark Answer as verified.

    Thanks,

    Mohit

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans