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

Announcements

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,741 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,932 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,172 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,172 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Sanhthosh.Kumar.K Profile Picture

Sanhthosh.Kumar.K 2

#2
Raed Salah Bzour Profile Picture

Raed Salah Bzour 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans