---
id: object/table/44
type: object
title: Table 44 "Sales Comment Line"
summary: Table 44 "Sales Comment Line" in Base Application (Microsoft.Sales.Comment). 7 fields, 7 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24, BC26.
tier: official
language: en
tags:
  - table
  - base application
versions:
  introduced: null
  last_changed: "26"
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: ba1ded8d884b12e6f678a47cdd6d96aaedd0469e0d83220027939127379f1578
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Comment/SalesCommentLine.Table.al
    title: src/Layers/W1/BaseApp/Sales/Comment/SalesCommentLine.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/ca
    - localization/mx
    - localization/us
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 44
name: Sales Comment Line
namespace: Microsoft.Sales.Comment
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
source_major: "29"
obsolete: null
countries:
  - ca
  - mx
  - us
ms_search_form_ids: []
counts:
  fields: 7
  procedures: 14
  events: 7
  subscribers: 0
relations:
  out: 2
  referenced_by: 5
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 44 "Sales Comment Line"

> Table 44 "Sales Comment Line" in Base Application (Microsoft.Sales.Comment). 7 fields, 7 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24, BC26.

Base Application · Microsoft.Sales.Comment · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Sales/Comment/SalesCommentLine.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Caption | Sales Comment Line |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Document Type | Enum "Sales Comment Document Type" | — | enum [Enum 44 "Sales Comment Document Type"](../enum/44.md) |
| 2 | No. | Code[20] | Specifies the number of the involved entry or record, according to the specified number series. |  |
| 3 | Line No. | Integer | — |  |
| 4 | Date | Date | Specifies the date the comment was created. |  |
| 5 | Code | Code[10] | Specifies a code for the comment. |  |
| 6 | Comment | Text[80] | Specifies the comment itself. |  |
| 7 | Document Line No. | Integer | — |  |

## Keys

- Key1: Document Type, No., Document Line No., Line No. (clustered)

## Events published

- `OnAfterSetUpNewLine(var SalesCommentLineRec: Record "Sales Comment Line"; var SalesCommentLineFilter: Record "Sales Comment Line")` (integration): Raises an event after initializing default values for a new sales comment line.
- `OnBeforeCopyComments(var SalesCommentLine: Record "Sales Comment Line"; ToDocumentType: Integer; var IsHandled: Boolean; FromDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20])` (integration): Raises an event before copying comment lines from one document to another.
- `OnBeforeCopyLineComments(var SalesCommentLine: Record "Sales Comment Line"; var IsHandled: Boolean; FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20]; FromDocumentLineNo: Integer; ToDocumentLine: Integer)` (integration): Raises an event before copying line-specific comment lines from one document line to another.
- `OnBeforeCopyLineCommentsFromSalesLines(var SalesCommentLine: Record "Sales Comment Line"; var IsHandled: Boolean; FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20]; var TempSalesLineSource: Record "Sales Line" temporary)` (integration): Raises an event before copying line-level comments from sales lines to header-level comments on the target document.
- `OnBeforeCopyHeaderComments(var SalesCommentLine: Record "Sales Comment Line"; var IsHandled: Boolean; FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20])` (integration): Raises an event before copying header-level comments from one document to another.
- `OnBeforeCopyCommentsOnBeforeInsert(var NewSalesCommentLine: Record "Sales Comment Line"; OldSalesCommentLine: Record "Sales Comment Line")` (integration): Raises an event before inserting a copied comment line, allowing modification of the new comment before insertion.
- `OnBeforeSetUpNewLine(var SalesCommentLineRec: Record "Sales Comment Line"; var SalesCommentLineFilter: Record "Sales Comment Line")` (integration): Raises an event before initializing default values for a new sales comment line.

## Procedures

- `SetUpNewLine()`: Initializes default values for a new sales comment line, setting the date to work date if no other comment exists for the current date.
- `CopyComments(FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20])`: Copies all comment lines from one sales document to another.
- `CopyLineComments(FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20]; FromDocumentLineNo: Integer; ToDocumentLineNo: Integer)`: Copies comment lines associated with a specific document line to another document line.
- `CopyLineCommentsFromSalesLines(FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20]; var TempSalesLineSource: Record "Sales Line" temporary)`: Copies line-level comments from multiple sales lines to header-level comments on the target document.
- `CopyHeaderComments(FromDocumentType: Integer; ToDocumentType: Integer; FromNumber: Code[20]; ToNumber: Code[20])`: Copies header-level comments from one sales document to another.
- `DeleteComments(DocType: Option; DocNo: Code[20])`: Deletes all comment lines associated with the specified sales document.
- `ShowComments(DocType: Option; DocNo: Code[20]; DocLineNo: Integer)`: Opens the Sales Comment Sheet page to display comments for the specified document or document line.

## Relations

- drill-down page [Page 69 "Sales Comment List"](../page/69.md)
- lookup page [Page 69 "Sales Comment List"](../page/69.md)

## Referenced by

5 fields in 5 objects relate to this table (TableRelation or CalcFormula).

- [Table 110 "Sales Shipment Header"](../table/110.md): Comment
- [Table 112 "Sales Invoice Header"](../table/112.md): Comment
- [Table 114 "Sales Cr.Memo Header"](../table/114.md): Comment
- [Table 36 "Sales Header"](../table/36.md): Comment
- [Table 6660 "Return Receipt Header"](../table/6660.md): Comment

## Pages and codeunits on this table

- [Page 67 "Sales Comment Sheet"](../page/67.md) (source table)
- [Page 69 "Sales Comment List"](../page/69.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26

## Countries that replace it

[CA](../../localizations/ca.md), [MX](../../localizations/mx.md), [US](../../localizations/us.md)

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Sales Comment Line")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
