Skip to main content

Notifications

Finance | Project Operations, Human Resources, ...
Answered

How to get the list of all AOT Tables?

(0) ShareShare
ReportReport
Posted on by 81

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
    akshi 81 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
    GirishS 27,821 Super User 2024 Season 1 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
    Mohit Rampal 12,554 Super User 2024 Season 1 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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,031 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,868 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans