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

Add custom XML fields to Business Central report

(1) ShareShare
ReportReport
Posted on by 368
Hello!
I am trying to add an extension to a report and making the fields available in Word as XML fields.
Usually I just code the reportextension, publish it, go to Report Layout Selection, and make a new report based on the old one. The new fields are now available when I export the report and edit it.
However, this way of doing it is being deprecated, and I can no longer do it that way.
 
The report is initially a custom report from an extension, and I just want to add another field to it by making a reportextension.
 
The new way of customizing the reports are under Report Layouts. I can't edit or remove the current one (because it is from an extension, and not a user defined report). If I make a new one based on the report, the new fields are not there.
 
How do I get the new custom fields into my new custom report?
 
This is the reportextension:
 
reportextension 50106 SalesInvoiceExt extends CR_SalesInvoice
{
    dataset
    {
        add(Line)
        {
            column(ProductInfo; ProductInfo) { }
            column(SalesInfo; SalesInfo) { }
        }
    }
 
}
I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,811 Super User 2026 Season 2 on at
    Hi, I think it is similar to the previous method. In the Report Layouts page, you can find this layout file, export it and create a new one, and finally set it to default.
    More details:
    Business Central 2022 wave 1 (BC20) new features: New pages for report layout administration (page 9660 “Report Layouts”)
     
     In addition, the Report Layout Selection page has not been deprecated. You can find this report, then click Custom Layouts, create a new layout and then export the file. This should still have the newly added fields.



    Hope this helps.
    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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 548 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 417 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 377 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans