Notifications
Announcements
No record found.
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 FA 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! 🙌
fyi, i had perviously asked similar question for Gen. Journal Line
https://community.dynamics.com/forums/thread/details/?threadid=0bcac2a1-f84c-f011-877a-7c1e52027a5f
however, for this one i am unable to find correct event subscriber.
Hi Ahsan,
You're asking how to pass a custom field "FA Quantity" from the FA Journal Line to the FA Ledger Entry table after posting. You've already added the field to both tables and made it editable on the journal page, which is a great start.
To complete the flow, yes—you’ll need to extend the posting routine using an event subscriber. The right place to hook into is the codeunit that handles FA journal posting.
1. Use OnAfterInitFALedgEntry in Codeunit FA Jnl.-Post Line This event is triggered when the FA Ledger Entry is initialized during posting. You can use it to transfer your custom field value.
OnAfterInitFALedgEntry
FA Jnl.-Post Line
[EventSubscriber(ObjectType::Codeunit, Codeunit::"FA Jnl.-Post Line", 'OnAfterInitFALedgEntry', '', true, true)] local procedure OnAfterInitFALedgEntry(var FALedgerEntry: Record "FA Ledger Entry"; FAJnlLine: Record "FA Journal Line") begin FALedgerEntry."FA Quantity" := FAJnlLine."FA Quantity"; end;
Make sure:
2. Optional: Use TransferFields for broader field mapping If you have multiple fields to pass, you can use TransferFields instead of assigning each manually. Just ensure field numbers and types match.
TransferFields
Here’s a helpful link showing how to configure custom field flows between journal and ledger tables:
Dynamics 365 Lab – How to flow/pass custom field values Directions for Partners – Field Transfer Techniques Microsoft Learn – Fixed Asset Journal Setup If you find this helpful, feel free to mark this as the suggested or verified answer. Cheers Jeffrey
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,135
YUN ZHU 733 Super User 2025 Season 2
Sumit Singh 612