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)

Adding methods in a data entity extension

(0) ShareShare
ReportReport
Posted on by 1,264

Hello Community, 

I am creating an extension based on the vendInvoiceRegisterLineEntity, except when I right click on methods froms the extension dataEntity, i don't see the option 'override Method' or ' new Method'

Might you please telling how would you add new method on an existing entity?

Kind regards, 

Jihane

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mai.S Profile Picture
    370 on at

    Hi Jihane, 

    I think this Q&A covers your concern.

    https://community.dynamics.com/ax/f/33/t/246107

    Please have a look.

    Regards,

  • Suggested answer
    Sukrut Parab Profile Picture
    71,735 Moderator on at

    You can not add any method on extension directly. You have to create extension class for that entity

    [ExtensionOf(tablestr(LedgerJournalEntity)]

    final class ledgerJournalEntity_extension

    {

    }

  • Ann2015 Profile Picture
    1,128 on at

    Thank you!  Now its throwing these compile errors.

    [AxDataEntityViewExtension/CustCustomerV2Entity.Extension/ViewMetadata/DataSources/CustTable/DataSources/DefaultDimensionDAVS/Table]:Table 'DimensionSetEntity' does not exist.

  • Ann2015 Profile Picture
    1,128 on at

    DimensionSetEntity table exists in the AOT.

  • Martin Dráb Profile Picture
    239,084 Most Valuable Professional on at

    Make sure you have a reference to the package containing DimensionSetEntity.

  • Ann2015 Profile Picture
    1,128 on at

    I have created this entity in my custom model, should I be in the Application Suite ?

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

    No. But your model must have a reference to the package where DimensionSetEntity is.

  • Ann2015 Profile Picture
    1,128 on at

    I am getting these errors in the VS during compile. SHould I add reference in VS?

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

    Yes: docs.microsoft.com/.../models

  • Suggested answer
    Ann2015 Profile Picture
    1,128 on at

    Thank you all.  No more compilation errors. Thanks again!

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
Basit Profile Picture

Basit 1

#1
GL-01081504-0 Profile Picture

GL-01081504-0 1

#1
Roya Profile Picture

Roya 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans