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.
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.
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.
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
André Arnaud de Cal...
292,031
Super User 2025 Season 1
Martin Dráb
230,868
Most Valuable Professional
nmaenpaa
101,156