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, ...
Suggested Answer

Is COC of methods allowed in internal classes ?

(1) ShareShare
ReportReport
Posted on by

Hi All,

I am currently working on a requirement in which I have to add customized code in one of Microsoft's internal classes. 

Class name is 'EngChgEcmRequestWorkflow' and it is internal.

COC of the method with an 'internal' modifier is not allowed and error is thrown.

But this is not the case with internal classes. I am getting a BP warning "internal class cannot be extended" but not compile error.

Is it safe to ignore this "BP warning" and continue?

Thanks!

I have the same question (0)
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    301,069 Super User 2025 Season 2 on at

    Hi Muhammad,

    It is not safe to ignore it. Microsoft can change the BP warning into an error. The contents of the class can also be changed or deprecated without any upfront notification.

    It would be the best to create an Extensibility request. docs.microsoft.com/.../extensibility-requests

  • huijij Profile Picture
    19,811 on at

    Hi Muhammad,

    As mentioned,It is not safe to ignore it. Internal Method can not be wrapped in extension class the same as COC.

    regards

  • Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at
    It sounds like a bug to me. You shouldn't be able to refer to internal classes from other packages than where the class is defined (and its friend packages). The warning may suggest that MS is aware of the problem and gives you a chance to change existing code before they fix the bug (and code extending internal class will stop compiling).

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 592 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 305 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans