How to find a table name by ID in Dynamics AX
axapta, dynamics-ax-2009
Solution
Looking at the SQL dictironary is really the correct method. Search for the line with the FieldId equal to 0. Using TSQL this will tell the name of the table for tableid 505
select NAME
from SQLDICTIONARY
where TABLEID = 505
and FIELDID = 0
Problem
Each table in the AOT has an ID, how can I discover the table name given an ID?