Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

How to get the Unique primary key with each record..

(0) ShareShare
ReportReport
Posted on by 2,211 Moderator

Let's say I have a table with multiple fields and I want to add multiple duplicate records. But I cannot use any working field of my table as the primary key.. instead, I want to use a key that will automatically be generated every time I add a record so that I would have multiple duplicate records.

Just like we have a RecId in other ERPs like FinOps.

Thanks

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,029 Moderator on at
    RE: How to get the Unique primary key with each record..

    And you will also have to define the new field as the primary key on your table and that can be a challenge if you already have data in your table.

    So one option could be to create a new table withe the EntryNo as PK and then migrate your old data to your new table.

  • Suggested answer
    DAnny3211 Profile Picture
    9,278 Moderator on at
    RE: How to get the Unique primary key with each record..

    Hi

    you must create a field of this type

    pastedimage1668798599222v1.png

    check my answer if it helped you, thanks

    DANiele

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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans