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

Notifications

Announcements

Community site session details

Community site session details

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

How to get the list of all AOT Tables?

(0) ShareShare
ReportReport
Posted on by

Hello Experts,

I'd like to get all AOT tables all of layers.

A scenario where a Lookup in a Form can select all tables in an AOT object.

I tried the following metadataSuppport method. But, this get all tables, all views and all Data Entities.

Requirement is I want to get all Tables only.

Microsoft.Dynamics.Ax.Xpp.MetadataSupport::TableNames();  

I also tried the following, but I could not get the data.

TestTable table;
 
SysDictionary dictionary = new SysDictionary();
TableId id;
id = dictionary.tableNext(0);
while(id)
{
table.TestTableNameCopy = tableId2Name(id);
id = dictionary.tableNext(id);
}

Any advice would be greatly appreciated.

 

I have the same question (0)
  • Suggested answer
    Mohit Rampal Profile Picture
    12,563 Moderator on at

    Hi Akshi, Please check this thread

    community.dynamics.com/.../603729

    There is an article for same requirement.

    shootax.blogspot.com/.../x-d365fo-create-list-of-table-name.html

  • Verified answer
    GirishS Profile Picture
    27,825 Moderator on at

    Hi akshi,

    Refer to the form System administration >> Setup >> Cross company data sharing >> Inside the form there is a selection of table name.

    Form name is "SysDataSharingTableSelectDialog" >> On the form design you can refer to the control name "TableName" under DialogContentGroup >> You can refer to the lookup method of the tableName control.

    Thanks,

    Girish S.

  • akshi Profile Picture
    on at

    Hi Girish,

    This is helpful.

    It was getting all tables except the Temporary table. If you know how to get all table types including Temp tables please let me know.

    Thank you so much.

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

News and Announcements

[Smoke test 2510.1]

Quick Links

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

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

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans