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

Why the original class ignored and only call extension class instead ?

(1) ShareShare
ReportReport
Posted on by 405
Hello everyone,
 
I'm creating an extension class for table SubBillDeferralTransactionLineDeferral, and inside we create method for initFromSalesLine(SalesLine _salesLine, boolean _defaulting, boolean _maintainPostingAccount)
 
In the middle of that method, we put / next initFromSalesLine (_salesLine,  _defaulting);/ right after several more codes.
 
Later in other class, I want to insert some data into this table, by having this kind of statement:
 
         SubBillDeferralTransactionLineDeferral        deferralTableInsert;
         ttsbegin;
                    deferralTableInsert.clear();
                    deferralTableInsert.initFromSalesLine(MycustInvoiceTrans.salesLine(),true);
                    deferralTableInsert.insert();
          ttscommit;
 
 
To my surprise, when I debug the line /deferralTableInsert.initFromSalesLine(MycustInvoiceTrans.salesLine(),true);/ , while I understand it can to that earlier extension class, I'm wondering why it does not hit the original method from that table as well ?
Because I put breakpoint on the table's method, however it is not stop there, also I found there is no data updated while it should have if the original method being called.
 
 May I have some clue what could possibly wrong ?
Thanks
 
 
I have the same question (0)
  • Martin Dráb Profile Picture
    239,598 Most Valuable Professional on at
    The method is called; you have a problem with debugging. First of all, verify that you've enabled Subscription Billing package at Dynamics 365 > Options > Debugging.
  • Suggested answer
    André Arnaud de Calavon Profile Picture
    305,099 Super User 2026 Season 1 on at
    Hi Teevo,
     
    You can select which models will be used for debugging. By default, it will only debug your custom model. Go to Extensions > Dynamics 365 > Options... Then select the debugging tab where you can enable debugging other (related) models.


  • Layan Jwei Profile Picture
    8,165 Super User 2026 Season 1 on at
    Hi Teevo,
     
    Yes it seems you didn't enable debugging for other modules. Because if you did extensions where the next is called then definitely the original method should be called
     
    Thanks,
    Layan Jweihan
    Please mark this answer as "Verified" if it solved your issue. In order to help others who will face a similar issue in the future

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 April 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 771

#2
André Arnaud de Calavon Profile Picture

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

#3
Subra Profile Picture

Subra 496

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans