---
id: post/yzhums-com/70840
type: post
title: "Dynamics 365 Business Central: Copy Comments from Vendor to Purchase Document – Customization"
summary: 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.
tier: community
language: en
tags:
  - comments
  - customization
  - vendor management
  - purchase orders
  - table extensions
  - triggers
system: purchasing
review:
  state: reviewed
  by: opus
  at: "2026-10-26T06:40:55.432Z"
  flags: []
generated:
  at: "2026-10-26T05:51:10.938Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 7bdf7b29492fa62fa0bdbe2c79eef2a5115635250f55ce48226613f9da149a71
evidence:
  - kind: blog
    url: https://yzhums.com/70840/
    title: "Dynamics 365 Business Central: Copy Comments from Vendor to Purchase Document – Customization"
    date: "2026-02-26"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://yzhums.com/70840/
    title: "Dynamics 365 Business Central: Copy Comments from Vendor to Purchase Document – Customization"
    date: "2026-02-26"
    commit: null
    t: null
    quote: Comments on ongoing documents are transferred to the related posted document.
  - kind: blog
    url: https://yzhums.com/70840/
    title: "Dynamics 365 Business Central: Copy Comments from Vendor to Purchase Document – Customization"
    date: "2026-02-26"
    commit: null
    t: null
    quote: As of now, this function is not included in the standard features... So we can only customize it.
links:
  learn: []
  objects:
    - object/table/97
    - object/table/43
    - object/codeunit/90
    - object/enum/43
    - object/enum/38
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  related:
    - to: post/yzhums-com/71605
      title: "Business Central 2026 release wave 1 (BC28): Post purchase invoices for drop shipments independently of related sales invoices"
      label: possibly related
      why: both name Codeunit 90 "Purch.-Post"
      by: code
post_id: "70840"
source_id: yzhums-com
source_name: Dynamics 365 Lab - Yun Zhu
url: https://yzhums.com/70840/
published_at: "2026-02-26T00:45:15.000Z"
author: Yun Zhu
full_text: false
words: 630
quotes:
  - text: Comments on ongoing documents are transferred to the related posted document.
    why_it_matters: Explains the standard behavior that automatically passes comments between document types, which the customization builds upon.
  - text: As of now, this function is not included in the standard features... So we can only customize it.
    why_it_matters: Clarifies that copying vendor comments to purchase orders requires custom development rather than relying on built-in functionality.
code_objects_mentioned:
  - table Comment Line
  - table Purch. Comment Line
  - codeunit Purch.-Post
  - enum Purchase Comment Document Type
  - enum Purchase Document Type
systems:
  - purchasing
versions_mentioned: []
preview:
  embeddable: true
  frame_url: null
  image: https://yzhums.com/wp-content/uploads/2026/02/Snipaste_2026-02-26_09-41-24.png
  image_alt: null
  image_w: null
  image_h: null
  site_name: Dynamics 365 Lab
  favicon: https://yzhums.com/wp-content/uploads/2020/08/cropped-logo-3-32x32.png
  probed_at: "2026-10-26T06:08:40.495Z"
---

# Dynamics 365 Business Central: Copy Comments from Vendor to Purchase Document – Customization

[Read the post](https://yzhums.com/70840/) · Dynamics 365 Lab - Yun Zhu (Yun Zhu, MVP) · 2026-02-26 · 630 words · tier community · reviewed (checked by Opus)

> 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.

## 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"](../../objects/table/97.md)
- [table 43 "Purch. Comment Line"](../../objects/table/43.md)
- [codeunit 90 "Purch.-Post"](../../objects/codeunit/90.md)
- [enum 43 "Purchase Comment Document Type"](../../objects/enum/43.md)
- [enum 38 "Purchase Document Type"](../../objects/enum/38.md)

## 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](../../posts/yzhums-com/71605.md) — 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.
