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

How do I update a private table buffer in an extension class?

(0) ShareShare
ReportReport
Posted on by

I'm working on an extension class for a report DP class and am having trouble updating the table (a regular-type table that uses the CreatedTransactionId field - SalesInvoiceTmp) in my class. I can't directly access the record being updated and inserted by the base class because the table buffer is private. And doing on OnInserting event handler won't work because there I don't have access to table buffers from the class that I need to use to do lookups to do my record updates.

The base class is SalesInvoiceDP and I'm trying to set some custom fields on the SalesInvoiceTmp table, and when setting those fields I need to know what CustInvoiceTrans to use to do lookups to get the values I need to set those custom fields. Any suggestions on how I can do what I need to do, short of asking Microsoft to make changes to the base class? 

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    239,040 Most Valuable Professional on at

    In my version of application (10.0.14), SalesInvoiceTmp isn't private. It doesn't have any access modified, therefore it's protected and can be accessed from extension classes.

  • Suggested answer
    Community Member Profile Picture
    on at

    You're right - it is protected in my environment. I got an error trying to access this table buffer initially, but I must have misspelled the variable or some other silly mistake. It's working now - thank you!

  • Yuji Imaoka Profile Picture
    Microsoft Employee on at

    Class extension - Method wrapping and Chain of Command

    docs.microsoft.com/.../method-wrapping-coc

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