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

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

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,222 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,603 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,186 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans