---
id: object/page/6560
type: object
title: Page 6560 "Document Line Tracking"
summary: Page 6560 "Document Line Tracking" in Base Application (Microsoft.Foundation.Navigate). 2 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24-25.
tier: official
language: en
tags:
  - page
  - base application
versions:
  introduced: null
  last_changed: "25"
  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: 76380a1cdeaee03f042f3df4ce5e28661edd997d3ad02d1d8419aa67afaf097e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/Foundation/Navigate/DocumentLineTracking.Page.al
    title: src/Layers/W1/BaseApp/Foundation/Navigate/DocumentLineTracking.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
  - kind: learn
    url: https://learn.microsoft.com/dynamics365/business-central/across-how-to-track-document-lines
    title: Track order lines to related documents
    date: null
    commit: null
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/across-how-to-track-document-lines
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/general-business-functionality
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 6560
name: Document Line Tracking
namespace: Microsoft.Foundation.Navigate
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids:
  - docs/learn-smb-docs/business-central/across-how-to-track-document-lines.md
counts:
  fields: 0
  procedures: 63
  events: 7
  subscribers: 0
  controls: 10
  actions: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 4
  called_by: 0
  implements: 0
---

# Page 6560 "Document Line Tracking"

> Page 6560 "Document Line Tracking" in Base Application (Microsoft.Foundation.Navigate). 2 public procedures, 7 events. Present since at least BC23, still in BC30, changed in BC24-25.

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

## Properties

| Property | Value |
|---|---|
| Caption | Document Line Tracking |
| SourceTable | Document Entry |
| PageType | List |

## Fields on this page

Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control's own, else the bound field's (marked).

| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Line No. | `SourceDocLineNo` | Specifies the number of the tracked line. |
|  | Type | `DocLineType` | Specifies the type of the tracked document. |
|  | No. | `DocLineNo` | Specifies the number of the tracked document line. |
|  | Description | `DocLineDescription` | Specifies a description of the record. |
|  | Quantity | `DocLineQuantity` | Specifies the quantity on the tracked document line. |
|  | Unit of Measure Code | `DocLineUnit` | Specifies the unit of measure that the item is shown in. |
| Control5 | Entry No. | [Entry No.](../table/265.md#fields) | Specifies the number that is assigned to the entry. |
|  | Table ID | [Table ID](../table/265.md#fields) | Specifies the ID of the table that stores the tracked document line. |
|  | Table Name | [Table Name](../table/265.md#fields) | Specifies the name of the table that stores the tracked document line. |
|  | No. of Records | [No. of Records](../table/265.md#fields) | Specifies how many records contain the tracked document line. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Show | Show related document. |  |

## Events published

- `OnFindRecordsAfterCase(var TempDocumentEntry: Record "Document Entry" temporary; SourceDocType: Enum "Document Line Source Type"; SourceDocNo: Code[20]; SourceDocLineNo: Integer; SourceDocBlanketOrderNo: Code[20]; SourceDocBlanketOrderLineNo: Integer)` (integration)
- `OnAssignLineFieldFromDocumentAfterCase(var DocType: Text[30]; var DocNo: Code[20]; var DocArchive: Text[30]; var DocLineType: Text[30]; var DocLineItemNo: Code[20]; var DocLineDescription: Text[100]; var DocLineQuantity: Decimal; var DocLineUnit: Code[10]; SourceDocType: Enum "Document Line Source Type")` (integration)
- `OnAfterFindRecordsRelatedToSalesOrder(DocNo: Code[20]; DocLineNo: Integer; var TempDocumentEntry: Record "Document Entry" temporary)` (integration)
- `OnAfterFindRecordsRelatedToPurchaseOrder(DocNo: Code[20]; DocLineNo: Integer; var TempDocumentEntry: Record "Document Entry" temporary)` (integration)
- `OnAfterFindRecordsRelatedToSalesReturnOrder(DocNo: Code[20]; DocLineNo: Integer; var TempDocumentEntry: Record "Document Entry" temporary)` (integration)
- `OnAfterFindRecordsRelatedToPurchaseReturnOrder(DocNo: Code[20]; DocLineNo: Integer; var TempDocumentEntry: Record "Document Entry" temporary)` (integration)
- `OnShowRecordsOnElseCase(var TempDocumentEntry: Record "Document Entry" temporary)` (integration)

## Procedures

- `SetSourceDoc(NewSourceDocType: Enum "Document Line Source Type"; NewDocNo: Code[20]; NewSourceDocLineNo: Integer; NewDocBlanketOrderNo: Code[20]; NewDocBlanketOrderLineNo: Integer; NewDocOrderNo: Code[20]; NewDocOrderLineNo: Integer)`
- `FindRecords(ClearSourceTable: Boolean)` (protected)

Plus 54 local procedures.

## Triggers

OnFindRecord, OnInit, OnNextRecord, OnOpenPage

## Relations

- source table [Table 265 "Document Entry"](../table/265.md)

## Calls

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Page 516 "Sales Lines"](../page/516.md) (1 call: `ShowRecords → (object)`)
- [Page 518 "Purchase Lines"](../page/518.md) (1 call: `ShowRecords → (object)`)
- [Page 6619 "Sales Line Archive List"](../page/6619.md) (1 call: `ShowRecords → (object)`)
- [Page 6626 "Purchase Line Archive List"](../page/6626.md) (1 call: `ShowRecords → (object)`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24-25

## Documented on Microsoft Learn

- [Track order lines to related documents](https://learn.microsoft.com/dynamics365/business-central/across-how-to-track-document-lines)

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). The call sections above are our own, per object, from the BC29 call graph. 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: "page", object_name: "Document Line Tracking")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
