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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Modify primary key of the standard table in D365FO

(0) ShareShare
ReportReport
Posted on by

HI,

Recently I had a requirement to add a field to a standard table and add it to the primary key of the table.


I see that in most of the tables there are multiple indexes however the ones used for primary index is offcourse only one.


The question over here is that why do we have so many indexes when we are going to use only the primary index Does the use of the indexes is only to fetch the records faster based on index ?

Also in case there is a requirement to modify a primary index of a std table then how can we achieve the same?

Thanks,

K

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Changing a primary key of a standard table isn't possible, and that's likely a good thing, because such change could break all the standard logic that you wouldn't be able to modify. You'll need to think about another way to implement the business requirement.

    Additional indexes exist primarily for perfomance reasons - going through a tree structure of values of a single field is much faster then iterating all records in a table. There may also be additional indexes enforcing uniqueness.

  • André Arnaud de Calavon Profile Picture
    300,911 Super User 2025 Season 2 on at

    Hi Kishore,

    As mentioned by Martin, you can't change the primary key. You also asked how to achieve the same. Can you elaborate on the exact requirement, so we can help you with another approach?

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans