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

I have the same question (0)
  • 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,993 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,116 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 557 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans