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 75

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.

 

  • akshi Profile Picture
    75 on at
    RE: How to get the list of all AOT Tables?

    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.

  • Verified answer
    GirishS Profile Picture
    27,799 Moderator on at
    RE: How to get the list of all AOT Tables?

    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.

  • Suggested answer
    Mohit Rampal Profile Picture
    12,538 Moderator on at
    RE: How to get the list of all AOT Tables?

    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

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

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

#1
Jahanvi Profile Picture

Jahanvi 35

#2
PJ JohnPaul Profile Picture

PJ JohnPaul 5

#3
Anton Venter Profile Picture

Anton Venter 4 Moderator

Product updates

Dynamics 365 release plans