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...
Unanswered

Add custom XML fields to Business Central report

(1) ShareShare
ReportReport
Posted on by 311
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
    95,182 Super User 2025 Season 2 on at
    Add custom XML fields to Business Central report
    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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
Jainam M. Kothari Profile Picture

Jainam M. Kothari 3,481 Super User 2025 Season 2

#2
OussamaSabbouh Profile Picture

OussamaSabbouh 3,301

#3
YUN ZHU Profile Picture

YUN ZHU 1,728 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans