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...
Answered

add new fields or columns

(0) ShareShare
ReportReport
Posted on by 15

Good afternoon community, I would like to ask: if I wanted to add a new column to the products table, could I do it? One in which I define its use.
Yes, it is so, how?

  • Suggested answer
    MahGah Profile Picture
    15,613 on at

    Hi

    Please see this article  www.cloudfronts.com/.../

    Or you can see Simple Object Designer   www.hougaard.com/.../

  • Verified answer
    YUN ZHU Profile Picture
    103,227 Super User 2026 Season 2 on at
  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    Hi,

    Yes by using of Visual Studio code with AL language development you can do that, please follow the links as Zhu mentioned.

    Thanks.

  • Janarthananv Profile Picture
    115 on at

    Dear @DeveloperCc,

    Please try with the following code for adding a new field in Business Central.

    tableextension 50100 "My new item feild" extends Item

    {

       fields

       {

           field(50101; "dropboxtest"; Decimal)

           {

               Caption = 'Drop Box Value';

               DataClassification = ToBeClassified;

           }

           field(50102; Newfield; Integer)

           {

               Caption = 'Input';

               DataClassification = CustomerContent;

           }

           field(50103; "Test"; Option)

           {

               Caption = 'Value Option';

               DataClassification = ToBeClassified;

               OptionMembers = "Value1","Value2";

           }

           field(50104; Instructorcode; Code[25])

           {

               Caption = 'Instructor  File';

               DataClassification = ToBeClassified;

               TableRelation = Resource where(Type = const(Person));

           }

           field(50105; DateOfBirth; Date)

           {

               Caption = 'Date Of Birth';

               DataClassification = ToBeClassified;

           }

       }

    }

    pageextension 50100 "Field on item card" extends "Item Card"

    {

       layout

       {

           addfirst(InventoryGrp)

           {

               field(dropboxtest; Rec."dropboxtest")

               {

                   ApplicationArea = all;

               }

           }

           addfirst(InventoryGrp)

           {

               field(Newfield; Rec.Newfield)

               {

                   ApplicationArea = all;

                   Importance = Additional;

               }

           }

           addfirst(InventoryGrp)

           {

               field(Test; Rec.Test)

               {

                   ApplicationArea = all;

                   ShowMandatory = true;

               }

           }

           addfirst(InventoryGrp)

           {

               field(Instructorcode; Rec.InstructorCode)

               {

                   ApplicationArea = all;

               }

           }

           addlast(InventoryGrp)

           {

               field(DateOfBirth; Rec.DateOfBirth)

               {

                   ApplicationArea = all;

               }

           }

       }

       actions

       {

       }

    }

    Thanks,

    Janarthanan.v

  • developerCc Profile Picture
    15 on at

    Hello, good afternoon, as recommended, I started to get into development with AL, but when I wanted to execute a very simple code (docs.microsoft.com/.../introduction-development-process /5-exercise)

    I get this error: "Could not download symbols. Please see the Visual Studio Code output log for more details."

    I was also reading that the changes you make will be done in the sandbox not in the production environment.

    Could you explain to me how to start developing with AL and that these changes are seen in the production environment, please.

    First of all, Thanks.

  • Suggested answer
    YUN ZHU Profile Picture
    103,227 Super User 2026 Season 2 on at

    Hi, Hope the link below can give you some hints/

    https://yzhums.com/21735/

    Thanks.

    ZHU

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 757 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 451 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 391 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans