Skip to main content

Notifications

Announcements

No record found.

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
    IFC 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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,436 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans