Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

How to Pass Custom Field Value from "Gen. Journal Line" to "FA Ledger Entry" After Posting

(5) ShareShare
ReportReport
Posted on by 85

I’ve added a custom field named "FA Quantity" to both the "Gen. Journal Line" and "FA Ledger Entry" tables:


This "FA Quantity" field is visible and editable on the "Fixed Asset G/L Journal" page, allowing users to enter a value before posting.

 

Now, the journal posts successfully, but I need help with the following:

🔹 Goal:

I want the value entered in the "FA Quantity" field on the Gen. Journal Line to be transferred and saved into the "FA Quantity" field in the FA Ledger Entry table after the journal is posted.

Question:

 



How can I achieve this during or after the posting process? Do I need to extend the posting routine, and if so, which event/subscriber would be appropriate?

Any guidance, event suggestions, or examples would be greatly appreciated!

Thanks in advance! 🙌

  • Verified answer
    Ahsan baig 123 Profile Picture
    85 on at
    How to Pass Custom Field Value from "Gen. Journal Line" to "FA Ledger Entry" After Posting
    This worked for me.
     
       [EventSubscriber(ObjectType::Codeunit, Codeunit::"FA Jnl.-Post Line", 'OnBeforePostFixedAssetFromGenJnlLine', '', false, false)]
        local procedure OnBeforePostFixedAssetFromGenJnlLine(
            GenJournalLine: Record "Gen. Journal Line";
            var FALedgerEntry: Record "FA Ledger Entry";
            FAAmount: Decimal;
            VATAmount: Decimal;
            GLRegisterNo: Integer)
        begin        
            FALedgerEntry."FA Quantity" := GenJournalLine."FA Quantity";
        end;
  • Suggested answer
    Sohail Ahmed Profile Picture
    4,844 on at
    How to Pass Custom Field Value from "Gen. Journal Line" to "FA Ledger Entry" After Posting
    This will help you to find the correct event subscriber
     
     
    ✅ Mark this answer as verified if it helps you.
  • Suggested answer
    RockwithNav Profile Picture
    7,265 on at
    How to Pass Custom Field Value from "Gen. Journal Line" to "FA Ledger Entry" After Posting
    I will say try discovering the appropriate events from your side once, it will make you learn 5 different things as well. You can then let us know what all you tried and then all members are here to guide you. :)
     
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    24,592 Super User 2025 Season 1 on at
    How to Pass Custom Field Value from "Gen. Journal Line" to "FA Ledger Entry" After Posting
     
    You need to use an Event Subscriber:
    Look for the event publisher that is called before or during FA Ledger Entry insertion.
    You can use the OnAfterCopyLinks event in Codeunit 447 "Record Link Management". 
     
    Best regards,
    Mohamed Amine MAHMOUDI
     

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

News and Announcements

Now Available: 2025 Release Wave 2

Quick Links

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans