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

relationships fields between tables in business central

(0) ShareShare
ReportReport
Posted on by 373

Hi community,

Could you help me, how I can populated 1 : N Relationships?

For example I have a field in sales quote (Quote name), and I want after created the order populate the same data in sales order field (Order name)

pastedimage1670348193758v1.png

Thanks

  • Suggested answer
    Amit Profile Picture
    2,563 on at

    Hi,

    use this event for achieving the functionality.

    OnBeforeInsertSalesOrderHeader(SalesOrderHeader, SalesHeader);
    and for use of Eventscriber. Refer the below link
    Regards
    Amit Sharma
  • Suggested answer
    YUN ZHU Profile Picture
    103,157 Super User 2026 Season 2 on at

    Hi, If you want to transfer the data on Sales Quote to Sales Order when creating Order. Please refer to Amit's suggestion. You need to add the code when creating the order.

    If you just associate some data, such as master data. Consider using TableRelationship or Flowfield.

    Hope the following helps.

    https://yzhums.com/22220/

    And

    FlowFields (Sum, Average, Exist, Count, Min, Max, Lookup)

    https://yzhums.com/5802/

    How to create a Lookup, Drop-Down, or Option list (Single and Multi select)

    https://yzhums.com/5985/

    How to enter any value in a TableRelation field (Without validating the table relationship)

    https://yzhums.com/17582/

    Thanks.

    ZHU

  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    Hi

    you should ask your partner to develop a customisation.
    the part involved is this:

    codeunit 86 "Sales-Quote to Order" - > local procedure CreateSalesHeader -> OnBeforeModifySalesOrderHeader
    pastedimage1670428863948v1.png

    you should latch on to this event

    DAniele

  • Suggested answer
    pankaj.k Profile Picture
    1,020 on at

    Hi Manuel Lozada,

    if you want to Transfer your New Field Data form "Sales Quote" to "Sales Order" then you need to Write Code on  (EventSubscriber  OnAfterInsertSalesOrderHeader). Use below code...

    [EventSubscriber(ObjectType::Codeunit, Codeunit::"Sales-Quote to Order", 'OnAfterInsertSalesOrderHeader', '', false, false)]
    local procedure OnAfterInsertSalesOrderHeader(var SalesOrderHeader: Record "Sales Header"; SalesQuoteHeader: Record "Sales Header");
    begin

        SalesOrderHeader.YourField := SalesQuoteHeader.YourField;
        salesorderheader.Modify();
    end; 


    6685.Capture.PNG
    Thanks 

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

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 710 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 387 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 385 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans