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 :
Finance | Project Operations, Human Resources, ...
Answered

How to get the list of all AOT Tables?

(0) ShareShare
ReportReport
Posted on by 152

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,565 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,827 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
    152 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

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 551 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 450 Super User 2025 Season 2

#3
BillurSamdancioglu Profile Picture

BillurSamdancioglu 278 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans