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...
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
    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

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