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)

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

I have the same question (0)
  • Verified answer
    IFC Profile Picture
    15 on at

    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

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