web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

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,710 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
    237,965 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,160 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,160 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans