web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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
    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,100 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

Responsible AI policies

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

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans