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...
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?
I have the same question (0)
  • Ariba Mehdi Profile Picture
    166 on at
    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!
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,236 Most Valuable Professional on at
    Hi
    Here some information, i hope this can help you and give you some hints
    Best regards
    Gerardo
  • RomRyan Profile Picture
    on at
    is the below correct?
     
    [EventSubscriber(ObjectType::Table, Database::"Purch. Inv. Line" , 'OnBeforeInsertEvent', '', true, true)]
  • Suggested answer
    Teddy Herryanto (That NAV Guy) Profile Picture
    14,284 Super User 2025 Season 2 on at
    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
    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
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at
    Hi, hope the following helps.
    Dynamics 365 Business Central: How to flow/pass custom field values
     
    Thanks.
    ZHU
  • tanya07 Profile Picture
    1,638 on at
    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

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 2,135

#2
YUN ZHU Profile Picture

YUN ZHU 733 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 612

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans