Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Add a method to an standard entity

(0) ShareShare
ReportReport
Posted on by 15

Hello,

I want to add a defaultCTQuery() method to an standard data entity with the purpose to enable change tracking with custom query. How could I do it without overlaying it? I tried creating an extension class with an static method but when I try to enable change tracking with custom query I receive the error message "Custom query is not present on entity xxxxxxxxxx".

*This post is locked for comments

  • Verified answer
    IFC Profile Picture
    15 on at
    RE: Add a method to an standard entity

    Ok I answer to myself: You cannot extend a data entity for adding new methods. What you can do if you don't want overlaying standard data entities is to duplicate an existing one and customize it adding the new methods that you need.

    In this case you duplicate the data entity and add the defaultCtQuery() method.

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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans