---
id: object/table/9991
type: object
title: Table 9991 "Word Templates Related Buffer"
summary: Table 9991 "Word Templates Related Buffer" in System Application (System.Integration.Word). 11 fields. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - table
  - system application
versions:
  introduced: null
  last_changed: null
  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: 3eb87fc7c0c9cc0fa7ff4a433db76dac6fd23ac473117ba59dc6221a2ec4b326
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Word%20Templates/src/WordTemplatesRelatedBuffer.Table.al
    title: src/System Application/App/Word Templates/src/WordTemplatesRelatedBuffer.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: table
object_id: 9991
name: Word Templates Related Buffer
namespace: System.Integration.Word
app: System Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 11
  procedures: 0
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 0
  pages: 1
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 9991 "Word Templates Related Buffer"

> Table 9991 "Word Templates Related Buffer" in System Application (System.Integration.Word). 11 fields. Present since at least BC23, still in BC30.

System Application · System.Integration.Word · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Word%20Templates/src/WordTemplatesRelatedBuffer.Table.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Extensible | false |
| TableType | Temporary |

## 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 | Code | Code[30] | — | TableRelation [Table 9988 "Word Template"](../table/9988.md) (Word Template); DataClassification CustomerContent |
| 2 | Table ID | Integer | — | DataClassification SystemMetadata |
| 3 | Related Table ID | Integer | — | DataClassification SystemMetadata |
| 4 | Related Table Caption | Text[249] | Specifies the related entity. <small>via [Page 9987 "Word Templates Related Part"](../page/9987.md)</small> | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Table), "Object ID" = field("Related Table ID"))) |
| 5 | Field No. | Integer | — | DataClassification SystemMetadata |
| 6 | Field Caption | Text[80] | — | FlowField: lookup(Field."Field Caption" where(TableNo = field("Table ID"), "No." = field("Field No."))) |
| 7 | Related Table Code | Code[5] | Specifies a prefix that will indicate that the field is from the related entity when you are setting up the template. For example, if you enter SALES, the field names are prefixed with SALES_. The prefix must be unique. <small>via [Page 9987 "Word Templates Related Part"](../page/9987.md)</small> | NotBlank; DataClassification CustomerContent |
| 8 | Source Record ID | Guid | — | DataClassification SystemMetadata |
| 10 | Position | Integer | — | DataClassification SystemMetadata |
| 11 | Depth | Integer | — | DataClassification SystemMetadata |
| 12 | Table Caption | Text[249] | — | FlowField: lookup(AllObjWithCaption."Object Caption" where("Object Type" = const(Table), "Object ID" = field("Table ID"))) |

## Keys

- PK: Code, Related Table ID (clustered)
- Key2: Code, Related Table Code
- Key3: Position

## Relations

- Code: TableRelation [Table 9988 "Word Template"](../table/9988.md)

## Pages and codeunits on this table

- [Page 9987 "Word Templates Related Part"](../page/9987.md) (source table)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: none

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: "Word Templates Related Buffer")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
