Dynamics 365 Business Central: Copy Comments from Vendor to Purchase Document – Customization
This post explains how to customize Business Central to automatically copy comments from vendor cards to purchase orders. The standard system transfers comments within document types but lacks a feature to pull vendor comments into new purchase documents, requiring a table extension and trigger logic to implement this capability.

post Dynamics 365 Lab
"Comments on ongoing documents are transferred to the related posted document."
Key points
- Standard Business Central transfers comments between related documents of the same type (e.g., purchase order to purchase receipt) but does not automatically copy comments from vendor cards to purchase orders.
- Comments are stored in different tables: table 97 for vendor cards and table 43 for purchase documents, requiring custom code to bridge them.
- A table extension adds a toggle setting to Purchases & Payables Setup, and a Purchase Header extension uses OnAfterValidate and OnAfterInsert triggers to copy vendor comments when a vendor is selected.
- The customization checks both triggers because vendor number is not a primary key and documents can be created without it.
- The solution queries the Comment Line table for vendor records and inserts matching entries into the Purch. Comment Line table.
Quotes
- “Comments on ongoing documents are transferred to the related posted document.” (Explains the standard behavior that automatically passes comments between document types, which the customization builds upon.)
- “As of now, this function is not included in the standard features… So we can only customize it.” (Clarifies that copying vendor comments to purchase orders requires custom development rather than relying on built-in functionality.)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- table 97 “Comment Line”
- table 43 “Purch. Comment Line”
- codeunit 90 “Purch.-Post”
- enum 43 “Purchase Comment Document Type”
- enum 38 “Purchase Document Type”
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Business Central 2026 release wave 1 (BC28): Post purchase invoices for drop shipments independently of related sales invoices — possibly related: both name Codeunit 90 “Purch.-Post”
Context
- Features: comments, purchase orders, customization, table extensions, page extensions
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.