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 :
Finance | Project Operations, Human Resources, ...
Answered

D365 FinOp : How to extend or overwrite a class method

(0) ShareShare
ReportReport
Posted on by 916

Hi, 

I want to add new  logic around methods which are defined in the base class for un ssrs.  My requirement is to add new column in the report. So i add new field in temp table  the i want to feed this field in the method insert that called in processReport. 

This method is declared private so i can't use COC due to concept of COC 'can not be used as chain of command method because its target method is not protected'

Trying to use an eventhandler, i get this message :   "Pre or post event handlers can only be created on hookable methods"

Is there any other way to overwrite a class method ?

Regards

I have the same question (0)
  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Moved to D365 Finance forum.

    Please check this documentation:

    docs.microsoft.com/.../customize-app-suite-reports-with-extensions

    You can't hook into private methods. However if you share more details about what kind of change you would like to do in which class, it might be possible to find another way than what you tried.

  • ALAhmed Profile Picture
    916 on at

    Thank you for your quick reply.

    We would enable logs for ledger fiscal calendar period and then show more information in the column “record identification” instead of global recId.

    To do that I need to add new field in temp table of SSRS report and then fill this field in the method SysDatabaseLogDP.insertIntoTempTable() , this method is private, and it called on SysDatabaseLogDP.ProcessReport.

    Using the new field, I can get the information I want from FiscalCalendarPeriod and FiscalCalendar

  • Verified answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    Ok, in this particular case I can't figure out another workaround than duplicating the standard report objects, including controller class. This way you are free to do any modifications that you wish.

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can also log an extensibility request to Microsoft, asking them to make the insertIntoTempTable protected instead of private. But this could take time and there are no guarantees.

    docs.microsoft.com/.../extensibility-requests

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!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 616

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 460 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 331 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans