D365FO – AX – SSRS – Call a custom report instead of a Standard report

How to call a custom report instead of a standard report?

Create an extension of the standard Controller class and use a Chain of command for the method “parmReportName()”

[ExtensionOf(classStr(LedgerFiscalJournalController_IT))]
final class DVLedgerFiscalJournalController_IT_Extension
{
    public SRSCatalogItemName parmReportName(SRSCatalogItemName _reportName)
    {
        SRSCatalogItemName ret = next parmReportName(_reportName);
        
        //Report name fixed to custom report
        reportName = ssrsReportStr(DVLedgerFiscalJournal_IT, Report); //Thid code override the standard report with the new custom report "DVLedgerFiscalJournal_IT"
        return reportName;
    }

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s