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

Announcements

No record found.

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
JS-09031509-0 Profile Picture

JS-09031509-0 3

#2
AS-17030037-0 Profile Picture

AS-17030037-0 2

#2
Mark Eckert Profile Picture

Mark Eckert 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans