Skip to main content

Notifications

Announcements

No record found.

Business Central forum

How to find out the related tables?

Posted on by 422

So i added a field to the "Sales Header" table but i need to add it to all the related tables. Now how to i find out what tables are the related tables? (or what are the tables are related to it?)

Categories:
  • Verified answer
    Kalpavruksh D365 CoE Profile Picture
    Kalpavruksh D365 CoE 2,545 on at
    RE: How to find out the related tables?

    Hi,

    In Codeunit 80 Search for TRANSFERFIELDS(SalesHeader);

    The line of code referencing salesheader for e.g. SalesCrMemoHeader.TRANSFERFIELDS(SalesHeader);

    In the above-said line, SalesCrMemoHeader is related to SalesHeader where you have to define your newly created field with the same data type, Data length, and Field No.

    Similarly you can find more related tables when Search for TRANSFERFIELDS(SalesHeader);

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: How to find out the related tables?

    If you need the data to copy into posted documents, you should add the field to tables 110,112 and 114. Also subscribe to a relevant event publisher in codeunit 80 to transfer the value when posting.

    Tero

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans