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...
Answered

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

(5) ShareShare
ReportReport
Posted on by 155

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! 🙌

I have the same question (0)
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,390 Super User 2025 Season 2 on at
     
    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
     
  • Suggested answer
    RockwithNav Profile Picture
    8,600 Super User 2025 Season 2 on at
    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
    Sohail Ahmed Profile Picture
    11,136 Super User 2025 Season 2 on at
    This will help you to find the correct event subscriber
     
     
    ✅ Mark this answer as verified if it helps you.
  • Verified answer
    Ahsan baig 123 Profile Picture
    155 on at
    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;

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