Skip to main content

Notifications

Small and medium business | Business Central, N...
Unanswered

how to send custom field value into GL entry in Purchase Posting routine

Posted on by 83
Hi.
I have a Custom field in the Purchase line table, a field name called 'Description2', on posting a purchase invoice, I want all 'description2' to copy into the Description2 field in GL Entry, Vendor Ledger entry, and Item ledger entry. 
 
Will you help with the code on the Event Subscription?  AL code.
 
to add to my code unit.
 
Warm Regards
Kri-Hafiz
  • Suggested answer
    Tech_BC_Gokul Profile Picture
    Tech_BC_Gokul 295 on at
    how to send custom field value into GL entry in Purchase Posting routine
    Hi Kri-Hafiz, 

    Following of Description 2 for the Item is possible only for Item Ledger Entries and Value Entries. Since Item relative references are available only there. 

    OnAfterCopyFromItemJnlLine - in Item Ledger Entry Table use this event to copy the same 
     
    Thanks
    Gokulnath
  • Hafiz@d365 Profile Picture
    Hafiz@d365 83 on at
    how to send custom field value into GL entry in Purchase Posting routine
    thanks
     
    but i am not able to locate for event on the purchase line posting GL
     
    Warm regards
     
  • gdrenteria Profile Picture
    gdrenteria 12,167 Most Valuable Professional on at
    how to send custom field value into GL entry in Purchase Posting routine

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans