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...
Suggested Answer

Dataitem in report extensions

(1) ShareShare
ReportReport
Posted on by 24
Hi all,

I have created a report extension, to get data from another table. In this report extension I have added the dataitem Sales Comment Line and this is linked to the Sales Header. 
Thereafter, I have downloaded the standard RDLC report and copied it in my extension and updated the dataset in the report. The Comment column is available. 
However, somehow I do not get the information from the sales comment line. Has someone an idea why it is not working? 
reportextension 60134 pickinstructieSchut extends /Pick Instruction/
{
    RDLCLayout = 'layouts/pickinstructieSchut.rdl';
 
    dataset
    {
        add(/Sales Header/)
        {
            column(ExternalDocumentNo; /External Document No./)
            {
                IncludeCaption = true;
            }
            column(Shipment_Method_Code; /Shipment Method Code/)
            {
                IncludeCaption = true;
            }
        }
        addlast(/Sales Header/)
        {
            dataitem(/Sales Comment Line/; /Sales Comment Line/)
            {
                DataItemLink = /No./ = field(/No./);
                DataItemTableView = sorting(/Document Type/, /No./, /Document Line No./, /Line No./) where(/Document Type/ = const(Order));
                column(Comment; Comment)
                {
                    IncludeCaption = true;
                }
 
            }
        }
        add(/Sales Line/)
        {
            column(Description2; /Description 2/)
            {
                IncludeCaption = true;
            }
            column(Item_Reference_No_; /Item Reference No./)
            {
                IncludeCaption = true;
            }
        }
        addlast(/Sales Line/)
        {
            dataitem(Item; Item)
            {
                DataItemLink = /No./ = field(/No./);
                DataItemTableView = sorting(/No./);
                column(Base_Unit_of_Measure; /Base Unit of Measure/)
                {
                }
            }
        }
    }
}
I have the same question (0)
  • Suggested answer
    Kamal Khakhkhar Profile Picture
    2,915 on at
    Hii There,
    As per your question you need to create report extension along with that you need to download the Report , Add your fields in report as per requirement and replace it with old layout.
    here i attach a blog, video for reference.
     
     
    If you found useful mark it answered.
     
    Thank You.
    Kamal Khakhkhar

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans