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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

how to create an EDT or Table Object in the AOT dynamiclly?

(0) ShareShare
ReportReport
Posted on by 214

Hi,

I have an enquirement that create an EDT or Table object in the AOT dynamiclly.

for example, there's the runnable class source code:

find a node in the AOT;
create EDT object;
save EDT obejct;

but when I do the save, there is the error which is "the file is read only", but I can create EDT object dynamiclly in Dynamics AX.(Update: sorry, it also not works in AX)

Does anyone have the experience about it?

I have the same question (0)
  • Sergei Minozhenko Profile Picture
    23,095 on at

    Hi RongYan,

    Is it a business requirement or just developer experience in VS?

  • André Arnaud de Calavon Profile Picture
    304,116 Super User 2026 Season 1 on at

    Hi RongYan,

    Note that the application and development environment have been separated in Dynamics 365. In the application, you can't create AOT elements. It is possible to create e.g. fields by using the configurable Custom fields feature. A production environment does not have a development environment (AOT). It is having compiled runtime dlls only. 

    If your question is about a new kind of developer tool, then it would be possible to create a Visual Studio plug in which could help a developer in another way.

  • RongYan Profile Picture
    214 on at

    Hi,

    So sorry that I'm clear at my question.

    It's not a business requirement, it's a development requirement. We just want to create a simple to tool to create many of EDT class automatically.

  • Suggested answer
    Rahul Mohta Profile Picture
    21,042 on at

    see if this helps

    community.dynamics.com/.../creating-and-using-tables-through-code-x

  • André Arnaud de Calavon Profile Picture
    304,116 Super User 2026 Season 1 on at

    Hi RongYan,

    Can you explain how your solution should be triggered and work different from creating an EDT using standard development tools?

  • RongYan Profile Picture
    214 on at

    Hi André Arnaud de Calavon  

    thanks!

    As my imagine, I create a runnable class, and write the source code of creating EDT or Table in it.

    Then I write the EDT or Table 's property/field information in some config files.

    I run the runnable class, then the class read from above config files, then creating the EDT or Table according to the config information in the AOT.

    yes, it's just a tool that objects are created by config files automaticlly.

    It's not difficult to read the config file, but it seems that I can not create EDT or Table Object in the AOT.

  • Verified answer
    André Arnaud de Calavon Profile Picture
    304,116 Super User 2026 Season 1 on at

    Hi RongYan,

    A runnable class is not possible anymore like AX2012. This is because the runtime is not able to create development objects anymore.

    I haven't done it myself, but here is a small introduction to add-ins: docs.microsoft.com/.../developer-tools-add-ins

    You can also search GitHub for some developer tool extensions. I'm aware of this one from Hichem, but I haven't used it myself: github.com/.../D365FONinjaDevTools

  • Suggested answer
    nmaenpaa Profile Picture
    101,166 Moderator on at

    You can't use x++ code to create AOT objects.

    Instead you need to develop a Visual Studio plugin. You can check existing plugins as examples, one of them is shared by Andre in his message.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 733

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 461 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 278 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans