web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

List of All Table with ID, Name and Label

(0) ShareShare
ReportReport
Posted on by

Can anyone help me to retrieve the list of all tables in ax 2009 with ID, Name and Label

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Sohaib Cheema Profile Picture
    49,677 Super User 2026 Season 1 on at

    yeah you can get list as following

    static void ListOfTables(Args _args)
    {
        UtilElements        localEelmet;
        UtilEntryLevel      LayerName = UtilEntryLevel::usr;
        TreeNode            treeNode;
        
        ;
        while select localEelmet
            where localEelmet.utilLevel == LayerName
                && localEelmet.recordType == UtilElementType::Table
        {
    
            treeNode = xUtilElements::getNodeInTree(xUtilElements::parentElement(localEelmet));
    
            info(strFmt("TableId: %1 ; Name: %2",localEelmet.TableId,localEelmet.name));
    
    
        }
    
    }

    • But remember, running job can take long time, so better to use progress bar and save this information somewhere in new table or on any report.
    • Also don't forget to change/remove Layer range in query, as per your own need

  • Suggested answer
    Rudi Hansen Profile Picture
    4,079 on at

    This job should do the trick.

    static void TableList(Args _args)
    {
        tableId         tableId;
        int             tablecounter;
        Dictionary      dict = new Dictionary();
     
        for (tablecounter=1; tablecounter<=dict.tableCnt(); tablecounter++)
        {
            tableId = dict.tableCnt2Id(tablecounter);
            info(strFmt("TableId: %1 ; Name: %2 ; Lable: %3",tableId,tableid2name(tableId),tableid2pname(tableId)));
        }
    }
  • karthickarden Profile Picture
    135 on at

    Hi,

    I want to get the custom tables list from Dynamics AX 2009 through C#.

    Could you please provide the sample code

    Thanks

  • Martin Dráb Profile Picture
    239,029 Most Valuable Professional on at

    You already have X++ code doing that.

    Use Business Connector to call X++ code AX 2009 from C#.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Joris dG Profile Picture

Joris dG 5

#2
Alexey Lekanov Profile Picture

Alexey Lekanov 2

#2
Henrik Nordlöf Profile Picture

Henrik Nordlöf 2 User Group Leader

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans