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 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,062 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
    95,331 Super User 2025 Season 2 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

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