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

How Can I Use System Internal Class method in my Model

(0) ShareShare
ReportReport
Posted on by 30

Hello Everyone,

I am Customizing Customer account statement report whichis in AR Module.

And here Trying to Duplicate the "CustAccountStatementIntDP" class in my project and it is giving me error That is : " The type 'CustAccountStatementMonitor' of the member variable 'monitor' is internal to Model 'Foundation' and is not accessible from model 'MyModel'. 

pastedimage1670559507045v1.png

please give any idea to solve this Issue.

I have the same question (0)
  • Verified answer
    GirishS Profile Picture
    27,827 Moderator on at

    Hi Ganesh,

    CustAccountStatementMonitor is internal class. Internal class will be accessible inside the models only. You cannot refer to that class in your custom models.

    Workaround will be you need to implement the same logic in the class CustAccountStatementMonitor  in your custom model. Refer the custom class in the report instead of standard one.

    Thanks,

    Girish S.

  • Ganesh Ghuge Profile Picture
    30 on at

    Thank You Girish It works .

  • ergun sahin Profile Picture
    8,826 Moderator on at

    Remember, possible changes to the standard class you are copying will create differences between the copy and the original.

    Maybe in your case its perfect solution but in general you must look for possible extensible points

  • GirishS Profile Picture
    27,827 Moderator on at

    Yes exactly, but can you provide some ideas on extending the internal classes. It will be useful.

    Thanks,

    Girish S

  • ergun sahin Profile Picture
    8,826 Moderator on at

    We have an verfied answer and I'm accepting that answer too

    But I don't see community as an environment where only case-based answers are given. People learn ax from here.

    I also thought about my junoirs while writing my answer. If they start copying every internal class when they read the answer, we'll have a serious headache.

    In the first step, they have to see if the code goes through a non-internal class and an extension will work at this point.(I accept that it is not necessary for this question)

  • Ganesh Ghuge Profile Picture
    30 on at

    Yes ergun sahin ,

    Actually I am also a Fresher right now and there is lot of things to learn in Ax.

    and through this community I got lot of help to solve the issue and to learn the Ax.

    And in this Example i cant use the Dp class extension  bcoz of that internal class.

    so i had to copy Standard Class.

    Thank You.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 664 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 522 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 303 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans