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 :
Microsoft Dynamics AX (Archived)

How to call a TABLE private method ?

(0) ShareShare
ReportReport
Posted on by

 Hello everyone,

I need to call a Private static method of the SalesTable table from an extension. I have seen some examples of Reflection for classes and forms but I haven't seen any example for Tables. Is it possible ?

This is my code:

codeError.png

This is the error message:

errorMesg.png

Any idea ?   Thanks.

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Jie G Profile Picture
    Microsoft Employee on at
    Hi,
    It is recommended to create an extensibility request.
    Please refer to: Create Microsoft Dynamics 365 for Finance and Operations – Extensibility requests in LCS
  • Suggested answer
    Mea_ Profile Picture
    60,286 on at

    Hi BetoPR,

    It is possible but not recommended. Why do you need to call initfromCustTableServer at all? There is public method "initFromCustTable" that will call it anyway, so just use it!

  • Community Member Profile Picture
    on at

    Thanks for your answer.

    Ievgen, can you tell me how can I call the private method ? please.

     I took a look on the SalesTable and did not see a Public initFromCustTable. Anyway I'm evaluating if I can use another approach but I'd like to know how I can invoke a Table Private method.

    Thanks.

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

    What version are you on? There should be method SalesTable.initFromCustTable. Note: this method is in SalesTable table.

    You should not invoke private methods, they are not intended to be use from the extensions. Even if you managed to do that (it is technically possible), you risk your solution breaking during any application update, since MS may change the private methods at any time. The clear best practice is to extend only public and protected methods.

  • Suggested answer
    Community Member Profile Picture
    on at

    Thanks everyone I tried other approach to my requirement.

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 > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 39

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans