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 AX (Archived)

Creating a natural key by extending a table instead of overlaying

(0) ShareShare
ReportReport
Posted on by 130

Good afternoon,

I had to create a Data Entity based on the CustInvoiceTrans table using the Wizard but as that table only has RecId as the Primary Key, it does not allow me to do so.

I found a way to make a copy of the RecId, put it in its own unique index which is set as the Alternate Key and set that index as the table Replacement Key, then the Wizard worked.

Create natural key:

https://www.screencast.com/t/gsEAXKoKXxto

 

I understand that the recommended way moving forward is not to overlay a table but to extend it. But how can I extend a table and yet set the Replacement Key? The Replacement Key is greyed out when I tried to extend the table.

 

Thanks in advance.

*This post is locked for comments

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

    You can't change the property without overlayering . But you can remove it after using the wizard.

  • Suggested answer
    Mea_ Profile Picture
    60,284 on at

    Hi Terry Choo,

    Instead of changing a table you can copy any existing data entity, remove all exiting code\datasources\fields and add new one for CustInvoiceTrans  table.

  • Terry Choo Profile Picture
    130 on at

    Thanks Martin and Sukrut, I did exactly that and it worked. Ievgen, that sounds good too. I will try your method another time. Thanks.

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 AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans