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 :
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,304 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

I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,419 Super User 2026 Season 1 on at

    Hi

    you must create a field of this type

    pastedimage1668798599222v1.png

    check my answer if it helped you, thanks

    DANiele

  • Suggested answer
    IB-29041624-0 Profile Picture
    1,177 Moderator on at

    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.

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,796 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 965 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans