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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Business Central forum

AL TableExtension - Changing the existing keys for a table in AL

(0) ShareShare
ReportReport
Posted on by 52

Hi there, 

I am wanting to understand how I can customize the existing Budget Buffer table in AL code to add more (new) fields to the existing key. 

Is this possible and what could be the repurcussions

Thanks in advance

I have the same question (0)
  • Hannes Holst Profile Picture
    5,767 on at

    You have to find a design that allows you to integrate your Extension without a modification of the base application (core functionality).
    That is the new reality since Business Central. The "good old" NAV days are over :-)

  • screen123 Profile Picture
    52 on at

    THanks for this answer.

    How would you go about modifying the uniqueness of a table record without adding new keys to the existing key in the table?

  • Verified answer
    Hannes Holst Profile Picture
    5,767 on at

    hi,

    You can't amend the Primary Key using a Table Extensions:

    docs.microsoft.com/.../devenv-table-keys

    With the Spring '19 version you have to do the modification in C/SIDE.

    It will be possible with the Autumn '19 release to amend the base application in AL.

    Problems could be that you miss an update in the code (you have to check each GET for that table) and you are loosing the flexibility to install a CU or major release. So, in other words, I wouldn't do it.

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

News and Announcements

Season of Giving Solutions is Here!

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans