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 :
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,438 User Group Leader 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,075 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
    237,795 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans