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 :
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?

I have the same question (0)
  • Suggested answer
    MahGah Profile Picture
    15,529 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
    95,729 Super User 2025 Season 2 on at
  • Suggested answer
    Nitin Verma Profile Picture
    21,708 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
    91 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
    95,729 Super User 2025 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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,664

#2
YUN ZHU Profile Picture

YUN ZHU 960 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans