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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

How can I insert a custom field in Business Central

(1) ShareShare
ReportReport
Posted on by 2,122

Hi all, 

I want to insert a custom field in a report. I followed below mentioned link to create field:

https://www.archerpoint.com/blog/Posts/adding-field-extension-microsoft-dynamics-business-central-or-nav

I create a table extension and created a new custom field named as Notes of text datatype for Sales Invoice.  and then I created a page extension and placed custom field in that page. 

Published the application on Business Central. Downloaded the symbols again. then tried to create a report.al file for the RDL file creation. 

When I created report.al file to place the fields in the business central it is showing me an error "The name 'Notes' does not exist in the current contextAL(AL0118)". 

pastedimage1605968082841v1.png

Can anyone help me with this? 

Thanks in Advance

I have the same question (0)
  • Suggested answer
    Bilal Haider Profile Picture
    485 on at

    Hi,

    For which table you are creating the report we cannot see it as the image you attached is very small.

    Verify that you have added the field in correct table. And you are using the same table in report.

    Regards,

    Bilal Rai

  • Inkey Solutions Profile Picture
    2,122 on at

    Hi Bilal,

    Thanks for your response. We have inserted the field in the correct table and using the same in reports. Kindly look into the image provided below. 

     5432.ss.png

    Thanks in Advance, 

    Vani Vashisht 

  • Bilal Haider Profile Picture
    485 on at

    Please share the screenshot of table no/name where you have added the notes field and also share the dataitem of that table under which you are adding this notes field.

    Regards,

    Bilal

  • Suggested answer
    Bilal Haider Profile Picture
    485 on at

    In the code below I have added a new field and then took that field to report and it is working 100% correct. Please check it and see if you have done something different than this.

    tableextension 50100 MyExtension extends "Sales Invoice Header"
    {
        fields
        {
            field(50100; Notes; Text[250])
            {
                DataClassification = ToBeClassified;
            }
        }
    
        var
            myInt: Integer;
    }
    
    report 50100 MyReport
    {
        UsageCategory = Administration;
        ApplicationArea = All;
    
        dataset
        {
            dataitem(DataItemName; "Sales Invoice Header")
            {
                column(Notes; Notes)
                {
    
                }
            }
        }
    }

  • Suggested answer
    darcnus Profile Picture
    253 on at

    Sometimes the symbols need to be rebuilt after changes. You can rebuild with or without data by adding 'schemaUpdate' to your launch.JSON file:

    docs.microsoft.com/.../devenv-retaining-data-after-publishing

  • Suggested answer
    Anks27 Profile Picture
    1,087 on at

    Hello,

    I have gone through your question as well as link, one of the possibility of the issue is your custom field extension is different than current extension. so what you need to do is add dependency of your that custom field extension into app.json file or if the extension are not different then try to ReOpen VS Code and after that you can check your field is usable or not.

    Don't forget to help the community by verifying the answer if your question has been answered. It will let others know that the topic has verified answer.

     

    Thanks & Regards,

    Ankit Shah

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 Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,119 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,522 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,177 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans