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 get a field record to another field from different tables

(0) ShareShare
ReportReport
Posted on by 160

Hi mates!

I need your help.

I have a text field in Purch. Inv. Header table.

I made another text field in Vendor Ledger Entries and I want to put the record on the other text field inside this new one.

How can I do it?

For example:

Purch. Inv. Header -> New field "Note" with "Call Joe".

Vendor Ledger Entries -> Getting info from the other field -> Field "Note" with "Call Joe"

In the last one, the field must be editable so I can't do it with "lookup".

Any ideas? Thanks! :)

I have the same question (0)
  • Suggested answer
    Vaishnavi J Profile Picture
    3,094 on at

    Hi,

    To bring data from purchase invoice header to vendor ledger entries you can use event subscriber in your codeunit below is the example for the same

     [EventSubscriber(ObjectType::Codeunit, Codeunit::"Purch.-Post", 'OnAfterFinalizePosting', '', false, false)]

       local procedure OnAfterFinalizePosting(var PurchInvHeader: Record "Purch. Inv. Header")

       var

           Rec_VLE: Record "Vendor Ledger Entry";

       begin

           Clear(Rec_VLE);

           Rec_VLE.Reset();

           Rec_VLE.SetRange("Document No.", PurchInvHeader."No.");

           Rec_VLE.SetRange("Posting Date", PurchInvHeader."Posting Date");

           if Rec_VLE.FindFirst() then begin

               Rec_VLE.VJ_Note := PurchInvHeader.VJ_Note; // Assign your field created value from Purchase invoice header to VLE

               Rec_VLE.Modify(true);

           end;

       end;

    If my answer was helpful to you, please verify it so that other users know it worked. Thank you very much

  • Suggested answer
    YUN ZHU Profile Picture
    98,507 Super User 2026 Season 1 on at

    Hi, or just create a variable on the page. When you open the page, take the value from Vendor Ledger Entries. This field can also be modified. When you modify it, you can also add a little code in Validate Trigger to update it back to Vendor Ledger Entries.

    Hope this will help.

    Thanks.

    ZHU

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,821 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,122 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans