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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Page Extension Add new field to Sales Line grid

(0) ShareShare
ReportReport
Posted on by 10

Hello

I have created a table extension to add a new field to Sales Line. What I'm struggling with is to how to add this field to Sales Quote Grid. I can add the field bellow but not in the grid

bs_5F00_ext.JPG

I have the same question (0)
  • Suggested answer
    Nitin Verma Profile Picture
    21,698 Moderator on at
    RE: Page Extension Add new field to Sales Line grid

    Hi Nilo365 ,

    Table extension is ok, now you have to create a Page extension to publish that field into your required, please refer the below link how to create a Page extension.

    docs.microsoft.com/.../devenv-page-ext-object

  • Suggested answer
    raelhefn Profile Picture
    on at
    RE: Page Extension Add new field to Sales Line grid

    Hi,

    Using personalization feature, you can hide from Gride after that drag from fields list and drop it under the grid.

    Or refer to this document docs.microsoft.com/.../devenv-designing-listparts to customize page listparts.

  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,105 Moderator on at
    RE: Page Extension Add new field to Sales Line grid

    Remember that a field that is added to a table does not automatically show up in the relevant pages.

    So you will either have to create a new page where you use your new table fields or add a page extension as Nitin suggested.

  • Suggested answer
    Alec Gray Profile Picture
    30 on at
    RE: Page Extension Add new field to Sales Line grid

    As the others above have said, you need to add a page extension after creating the table extension.

    Example code for the Sales Quote Subform page:

    pageextension 90132 SalesQuoteExtension extends "Sales Quote Subform"
    {
    layout
        {
            addafter("Location Code")
            {
                field("NEW FIELD NAME"; rec."NEW TABLE FIELD")
                {
                    ApplicationArea = All;
                }
            }
        }
            

  • Verified answer
    YUN ZHU Profile Picture
    95,307 Super User 2025 Season 2 on at
    RE: Page Extension Add new field to Sales Line grid

    Hi, just adding to others' reply.

    pastedimage1654564142768v2.png

    pastedimage1654564136483v1.png

    tableextension 50100 MyExtension extends "Sales Line"
    {
        fields
        {
            field(50100; "Add new field to Sales Line"; Text[100])
            {
                DataClassification = CustomerContent;
            }
        }
    }
    
    pageextension 50111 MyExtension extends "Sales Order Subform"
    {
        layout
        {
            addafter("Location Code")
            {
                field("Add new field to Sales Line"; Rec."Add new field to Sales Line")
                {
                    ApplicationArea = All;
                }
            }
        }
    }

    Hope this helps as well.

    Thanks.

    ZHU

  • Nilo365 Profile Picture
    10 on at
    RE: Page Extension Add new field to Sales Line grid

    I didn't know you can specify even a column you want to add after, Thanks for that

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 3,377

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 2,696 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,512 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans