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)

Generate Unique ID in a field upon record creation?

(0) ShareShare
ReportReport
Posted on by 803

I a have a custom entity that is a prescription order entity, and I'd like a field titled "Order ID" to auto populate with a unique ID when each record is created. 

What is the simplest way to accomplish this?? Thank you in advance. 

*This post is locked for comments

I have the same question (0)
  • Verified answer
    a33ik Profile Picture
    84,331 Most Valuable Professional on at

    Hello,

    If you work with v9.0 then you can use new "autonumber" field feature - andz88.wordpress.com/.../dynamics-365-v9-0-hidden-gems-1-autonumber

    If you're on earlier version you can use one of many opensource solutions - celedonpartners.com/.../celedon-autonumber-solution-for-dynamics-crm for example.

  • Suggested answer
    RaviKashyap Profile Picture
    55,410 Moderator on at

    Refer this: community.dynamics.com/.../269353

    Hope this helps.

  • Suggested answer
    Preeti Sharma Profile Picture
    2,678 on at

    Hi,

    You can write custom workflow or plugin to generate unique ID  everytime record is created

    Also as suggested you can use auto numbering feature.

    Thanks:)

  • Verified answer
    Community Member Profile Picture
    on at

    Hi,

    here to do it without code: www.powerobjects.com/.../how-to-create-an-auto-number-without-code

    here an addin: www.powerobjects.com/.../powerautonumber

    As said before on v9 you have it ootb: community.dynamics.com/.../d365-v9-0-a-feature-a-day-auto-numbering-in-v9-0

  • Temmy Wahyu Raharjo Profile Picture
    2,916 on at

    In plugin event on create. Assign target attribute (order id) with this: Guid.NewGuid()

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