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

Custom Reports and usage of substitute method

(0) ShareShare
ReportReport
Posted on by 1,165

Hi All,

I just want to clarify the usage of Substitude method in SaaS BC.  If you want to add a new field a data set - say purchase order report 1322 and create RDLC version, then you have to create your own report - say 50322, and then also you need to use the substitute method with something like:

codeunit 50100 "Substitute Report" { [EventSubscriber(ObjectType::Codeunit, Codeunit::ReportManagement, 'OnAfterSubstituteReport', '', false, false)] local procedure OnSubstituteReport(ReportId: Integer; var NewReportId: Integer) begin if ReportId = Report::"1322" then NewReportId := Report::"50322"; end; }

This seems to look like a lot of work to add a new field unless there is an easier way?

Thanks

I have the same question (0)
  • Verified answer
    THE Italian Profile Picture
    Microsoft Employee on at

    Unfortunately there is no easier way at the moment.

    It does not exists a report extension object like e.g. table or page extension object.

    This is the way to go for.

  • Inkey Solutions Profile Picture
    2,102 on at

    Hi all,

    For one of our requirements to insert the custom field in the business central. We tried following the below mentioned steps:

    >> created a new custom field on the sales order page.

    >> inserted the field in the page extension

    >> created a new report with the help of the given link (navinsights.net/.../adding-a-field-to-a-standard-word-

    report-in-business-central/) As thing blog suggests we have created a new report with the new object number.

    >> build a RDL file

    >> placed that field in the RDL file under a new dataset.

    When we tried to design the report we were only able to see the dataset created by us with one field only.

    How can we use the existing fields in the custom report?

    OR

    Is there any way we can use the existing report to insert the custom field?

    We are following the solution mentioned below:

    community.dynamics.com/.../custom-reports-and-usage-of-substitute-method

    But did not find the relevant result. Can anyone help us with this? 

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,958 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,101 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans