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 :
Small and medium business | Business Central, N...
Suggested Answer

How to find all field references

(0) ShareShare
ReportReport
Posted on by 40

Hi

I have created a function to auto update item cross reference code while scanning on sales order page.

I wanted to update this functionality in all the pages that uses cross reference barcode.

Is there any way in BC 17 to find all the references of field or table that are related to.

Thanks in advance

  • Suggested answer
    rkwadraat Profile Picture
    10 on at

    make use of fieldref and the property relation

    docs.microsoft.com/.../fieldref-relation-method

  • Lars Lohndorf-Larsen Profile Picture
    Microsoft Employee on at

    Good question, and also good reply to use FieldRef. Another way that will show you some detials is to look at the Field system-table:

    page 50102 FieldList
    {
        PageType = List;
        ApplicationArea = All;
        UsageCategory = Lists;
        SourceTable = Field;

        layout
        {
            area(Content)
            {
                repeater(GroupName)
                {
                    field(TableNo; rec.TableNo) { ApplicationArea = All; }
                    field(TableName; rec.TableName) { ApplicationArea = All; }
                    field(FieldName; rec.FieldName) { ApplicationArea = All; }
                    field(TableRelation; rec.RelationTableNo) { ApplicationArea = All; }
                    field(Fieldrelation; rec.RelationFieldNo) { ApplicationArea = All; }

                }
            }
            area(Factboxes)
            {

            }
        }

        actions
        {
            area(Processing)
            {
                action(ActionName)
                {
                    ApplicationArea = All;

                    trigger OnAction();
                    begin

                    end;
                }
            }
        }
    }

    this will show you if a field is related to a table in properties. Except if the relation is conditional (for example "No." on a Sales Line. It also won't show any code relationships or where used. For that I don't think there are any tools at the moment, but I would be interested to hear if someone knows of any such tools.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 677 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 430 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 280 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans