Skip to main content

Notifications

Community site session details

Community site session details

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

Purchase Line extension + Posting

(1) ShareShare
ReportReport
Posted on by
Dear All,
I have extended purchase line table and added a field that is compulsory. I want if I post my purchase invoice or order, the field will reflect in table Purch. Inv. Line i.e. Posted purchase invoice in the lines and if possible (and no a must) it should hit General ledger the debit account. What should I do? any Idea?
  • tanya07 Profile Picture
    1,636 on at
    Purchase Line extension + Posting
    Hi ,
     
    the new field seems a amount value field where you wish to reflect to the GL acc being hit as a debit amount , am I right ?
     
    BR,
    Tanya
  • Suggested answer
    YUN ZHU Profile Picture
    81,636 Super User 2025 Season 1 on at
    Purchase Line extension + Posting
    Hi, hope the following helps.
    Dynamics 365 Business Central: How to flow/pass custom field values
     
    Thanks.
    ZHU
  • RomRyan Profile Picture
    on at
    Purchase Line extension + Posting
    Which objectType, the object it's self and event should I subscribe to make sure my customized field in purchase line is updated/inserted to Purch. Inv. Line?  I have tried severally but it's not responding during posting of purchase invoice.
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    13,476 Moderator on at
    Purchase Line extension + Posting
    As long as the field no is the same between the Purchase Line and Purch. Inv. Line table, it will get transferred automatically during posting.
    To hit General Ledger, it will be more difficult because you need to transfer it to General Journal Line and then General Ledger Entry.
  • RomRyan Profile Picture
    on at
    Purchase Line extension + Posting
    is the below correct?
     
    [EventSubscriber(ObjectType::Table, Database::"Purch. Inv. Line" , 'OnBeforeInsertEvent', '', true, true)]
  • Suggested answer
    gdrenteria Profile Picture
    17,600 Most Valuable Professional on at
    Purchase Line extension + Posting
    Hi
    Here some information, i hope this can help you and give you some hints
    Best regards
    Gerardo
  • Ariba Mehdi Profile Picture
    160 on at
    Purchase Line extension + Posting
    Hi there,

    Assign the same field ID to your custom field in both tables. Hopefully, it will reflect the values in Posted purchase lines after posting.  
     
     
    Hope it helps!

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,206 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,968 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans