Hi,
Can someone explain to me how it is with creating new methods on table extensions?
https://learn.microsoft.com/pl-pl/dynamics365/fin-ops-core/dev-itpro/extensibility/add-method-table
Wasn't this possible in earlier versions?
https://paragchapre.com/2021/12/03/display-method-on-table-extension-d365-fo/
https://community.dynamics.com/365/financeandoperations/b/howtodynamics365/posts/how-to-create-display-method-for-table-extension-in-dynamics-365
Are there any exceptions or other conditions?
Thanks.
You should follow the way described in your first link (utilizing ExtensionOf attribute). It's easier and more powerful.
F&O (not AX 2012 or older) allows creating extension methods even before CoC and ExtensionOf attribute were introduced (as described on those other two links), but there isn't a reason for using it anymore.
Hi Shooowtek,
Yes yo can create the table method via extension. You already posted the Microsoft documentation which explains about the rules which needs to be followed.
For the 2nd and 3rd link, you can simply create the display method via extension and assign it to a form control - No need to mention like ExtensionClassName_Extension::MethodName.
If you are still not clear, please elaborate your scenario you are trying to achieve. Based on that we can give you a suggestions.
Thanks,
Girish S.
OK, Thanks for sugestions.
Do the new display methods created need to be static?
I think it need not be static - Static is mentioned in the display method because on the control property we need to call the method using ExtensionClassName_Extension::MethodName (Using Scope resolution operator). That's why it is declared as static.
But in the latest version no need of mentioning the scope resolution operator on the form control. Just selecting the display method name is enough. So the display method need not to be static.
The old extension methods (which shouldn't be used anymore must always be static), although they're actually related to an instance.
When using the new approach (with ExtensionOf), use use static keyword to add static methods to the class (which isn't possible with the old approach) and no static keyword to declare instance methods (which is much more natural then the old way).
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
André Arnaud de Cal... 684 Super User 2025 Season 2
CA Neeraj Kumar 588
Martin Dráb 542 Most Valuable Professional