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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Finding child nodes of the table using X++ code

(0) ShareShare
ReportReport
Posted on by 206

Hi ,

I need to list all the child nodes of the table like (fields,field groups , relations etc) and further there properties and sub nodes using X++  code. Is there any reference or sample code ?

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    Try TreeNodeTraverser. It should look like this:

    #AOT
    
    TreeNode tableNode = new TreeNode(#TablesPath   #AOTDelimiter   tableName);
    TreeNodeTraverser traverser = new TreeNodeTraverser(tableNode);
    TreeNode node;
        
    while (traverser.next())
    {
        node = traverser.currentNode();
        info(node.treeNodePath());
    }

  • Martin Dráb Profile Picture
    237,996 Most Valuable Professional on at

    Does it answer your question?

    Your latest thread suggests that you may want something else than what you asked for here, but we couldn't know that. I believe that the suggested answer fits the question.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Abhilash Warrier Profile Picture

Abhilash Warrier 669 Super User 2025 Season 2

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 449 Super User 2025 Season 2

#3
Martin Dráb Profile Picture

Martin Dráb 384 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans