web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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,873 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,304 Super User 2026 Season 1 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
    99,544 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,933 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,055 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 640 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans