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

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Get a List of Tables Related to the Item Table

(3) ShareShare
ReportReport
Posted on by 67

Hi,

I’m working on a project where I’ve added a new field, Part No., to the Item table, and it’s set as a unique key. In my project, items are identified by Part No. instead of the traditional Item No..

To ensure that Part No. flows seamlessly wherever Item No. is currently used in the system, I need to identify all the tables that are related to the Item table or contain the Item No. field. This will help me update those tables to use Part No. appropriately.

Could you please guide me on how to get a comprehensive list of tables related to the Item table or any tools/queries that can help with this analysis?

Thank you!

I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    18,797 Super User 2025 Season 2 on at
    How to Get a List of Tables Related to the Item Table
  • Verified answer
    Alexander Drogin Profile Picture
    262 on at
    How to Get a List of Tables Related to the Item Table
    In AL, you can get all the references from the system table "Table Relation Metadata. Filter the table on the "Related Table ID" field:
     
    var TableRelMetadata: Record "Table Relations Metadata";
     
    TableRelMetadata.SetRange("Related Table ID", Database::Item);
    TableRelMetadata.FindSet();
     
    This table contains all table relation references, but not flowfield definition though, if there are any flowfields that refer to the Item table.
    Actually, Visual Studio Code is the best tool for this task if you don't mind some hassle of building the Business Central app from the source code. It is open source, but you still need to get access to the repository and set up the build. But once you've built it, VS Code tools can give you all insights. "Go to References" counts all kinds of table references.
  • Suggested answer
    YUN ZHU Profile Picture
    89,830 Super User 2025 Season 2 on at
    How to Get a List of Tables Related to the Item Table
    Hi, try the following system table
    ?table=2000000041
     
    Thanks
    ZHU
  • Suggested answer
    Ramiz Profile Picture
    597 on at
    How to Get a List of Tables Related to the Item Table

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…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,899 Super User 2025 Season 2

#2
Sumit Singh Profile Picture

Sumit Singh 2,444

#3
Jeffrey Bulanadi Profile Picture

Jeffrey Bulanadi 2,304

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans