---
title: "Codeunit 9989 Word Template Field Selection, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/points/
object: https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/
app: "System Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 9989 Word Template Field Selection, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/points/

11 procedures and triggers with a step in src/System Application/App/Word Templates/src/WordTemplateFieldSelection.Codeunit.al, in source order, read from the text, not from a run.

## SetExcludedFields

[Line 21](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L21).

- [29](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L29) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) DeleteAll
- [42](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L42) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert

## SetIncludeFields

[Line 46](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L46).

- [54](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L54) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Modify
- [66](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L66) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert

## GetCustomTableFields

[Line 82](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L82).

- [88](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L88) calls [Codeunit 9981 Word Template Custom Field](https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/) `SetCurrentTableId`
- [89](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L89) calls [Codeunit 9987 Word Template](https://jonas-paprotka.de/ref/codeunit/9987-word-template/) `OnGetCustomFieldNames`
- [90](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L90) calls [Codeunit 9981 Word Template Custom Field](https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/) `GetCustomFields`

## GetSupportedTableFields

[Line 97](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L97).

- [104](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L104) calls `IsFieldSupported`

## SelectDefaultFieldsForTable

[Line 109](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L109).

- [117](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L117) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) DeleteAll
- [129](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L129) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert

## CalculateNoSelectedFields

[Line 157](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L157).

- [170](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L170) calls [Codeunit 9981 Word Template Custom Field](https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/) `SetCurrentTableId`
- [171](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L171) calls [Codeunit 9987 Word Template](https://jonas-paprotka.de/ref/codeunit/9987-word-template/) `OnGetCustomFieldNames`
- [172](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L172) calls [Codeunit 9981 Word Template Custom Field](https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/) `GetCustomFields`

## GetAllTableFields

[Line 183](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L183).

- [192](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L192) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) DeleteAll
- [198](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L198) calls `IsFieldSupported`
- [202](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L202) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert
- [207](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L207) calls [Codeunit 9981 Word Template Custom Field](https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/) `SetCurrentTableId`
- [208](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L208) calls [Codeunit 9987 Word Template](https://jonas-paprotka.de/ref/codeunit/9987-word-template/) `OnGetCustomFieldNames`
- [209](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L209) calls [Codeunit 9981 Word Template Custom Field](https://jonas-paprotka.de/ref/codeunit/9981-word-template-custom-field/) `GetCustomFields`
- [215](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L215) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert

## ApplyChangesTo

[Line 219](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L219).

- [223](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L223) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) DeleteAll
- [230](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L230) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert

## CopyExcludeFields

[Line 234](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L234).

- [245](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L245) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Modify
- [249](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L249) calls `SelectLegacyDefaultFieldsForTable`

## ShowFieldSelection

[Line 252](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L252).

- [256](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L256) calls [Page 9992 Word Templates Field Selection](https://jonas-paprotka.de/ref/page/9992-word-templates-field-selection/) `SetTemporaryFieldSelection`
- [261](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L261) calls [Page 9992 Word Templates Field Selection](https://jonas-paprotka.de/ref/page/9992-word-templates-field-selection/) `ApplyChangesTo`

## SelectLegacyDefaultFieldsForTable

[Line 264](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L264), local.

- [272](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L272) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) DeleteAll
- [282](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L282) calls `IsFieldSupported`
- [286](https://jonas-paprotka.de/ref/codeunit/9989-word-template-field-selection/source/#L286) writes [Table 9989 Word Template Field](https://jonas-paprotka.de/ref/table/9989-word-template-field/) Insert

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
