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 :
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 84

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
    Ramiz Profile Picture
    597 on at
  • Suggested answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Hi, try the following system table
    ?table=2000000041
     
    Thanks
    ZHU
  • Verified answer
    Alexander Drogin Profile Picture
    262 on at
    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
    Khushbu Rajvi. Profile Picture
    20,275 Super User 2025 Season 2 on at

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 > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans