---
id: object/page/9996
type: object
title: Page 9996 "Word Template Selection Wizard"
summary: Page 9996 "Word Template Selection Wizard" in System Application (System.Integration.Word). 10 public procedures. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - page
  - 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: dfc631140c01ef55f9726bd12ba28f289face800b2d1cfa855202165c12943e2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/Word%20Templates/src/WordTemplateSelectionWizard.Page.al
    title: src/System Application/App/Word Templates/src/WordTemplateSelectionWizard.Page.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: page
object_id: 9996
name: Word Template Selection Wizard
caption: Apply Word Template
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: 0
  procedures: 10
  events: 0
  subscribers: 0
  controls: 18
  actions: 4
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 0
  implements: 0
---

# Page 9996 "Word Template Selection Wizard"

> Page 9996 "Word Template Selection Wizard" in System Application (System.Integration.Word). 10 public procedures. Present since at least BC23, still in BC30.

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

## Properties

| Property | Value |
|---|---|
| Caption | Apply Word Template |
| Extensible | false |
| SourceTable | Word Template |
| PageType | NavigatePage |
| Permissions | tabledata "Word Template" = rm |

## 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 |
|---|---|---|---|
| Templates | Code | [Code](../table/9988.md#fields) | Specifies the code of the template. |
|  | Name | [Name](../table/9988.md#fields) | Specifies the name of the template. |
|  | Entity | [Table Caption](../table/9988.md#fields) | Specifies the entity the template is asscociated with. |
| SelectOutput | Output format | `SaveFormat` | Specifies the format of the final document. |
|  | Split documents | `SplitDocuments` | Specifies whether one document per record should be created or one document for all Records. |
| Edit | EditHelp | `EditLbl` | Tooltip for editing.. |
|  | EditDocument | `EditDocumentTxt` | Open Word for editing merged document. |
| Filters | FilterHelp | `FilterHelpLbl` | Tooltip for filter.. |
|  | SetFilters | `SetFiltersLbl` | Select filters on the entity |
| FilterDetails | Filters | `Filters` | Specifies the filters to be applied on the record. |
| NoFilterDetails | No filter are set on the entity. | label | — |
| Overview | Entity | `RecordName` | Specifies the entity to be used when applying the template. |
|  | Filters | `Filters` | Specifies the filters to be applied on the record. |
|  | No. of Entities | `Format(NumberOfRecords)` | Specifies how many entities the template will be applied to. |
|  | Template Code | [Code](../table/9988.md#fields) | Specifies code of the template to apply. |
|  | Template Name | [Name](../table/9988.md#fields) | Specifies the name of the template to apply. |
|  | Output format | `SaveFormat` | Specifies the format of the final document. |
|  | Split documents | `SplitDocuments` | Specifies whether one document per record should be created or one document for all entities. |

## Actions

| Group | Action | ToolTip | Runs |
|---|---|---|---|
| Processing | Finish |  |  |
|  | Next |  |  |
|  | Back |  |  |
|  | New Template | Create a new Word template |  |

## Procedures

- `IsDocSaveFormat(): Boolean`
- `MergeTemplate(var WordTemplates: Codeunit "Word Template")` (protected)
- `SetTemplate(WordTemplate: Record "Word Template")`: Sets the template to apply. If not set, the user will be prompted to choose a template as part of the wizard.
- `SetData(RecordVariant: Variant)`: Sets the record to be used when applying the template.
- `SetData(Dict: Dictionary of [Integer, Text])` (internal): Set the entities that user can select to create the word template
- `GetDocumentFormat(): Text` (internal): Get the document format.
- `GetDocumentStream(var InStream: InStream)` (internal): Get the word template stored in the Blob.
- `SaveAsDocumentStream()` (internal): Save the word template into a Blob, that can then be retrived by a stream.
- `WasDialogCompleted(): Boolean` (internal): Returns if the user completed the dialog to add a word template.
- `SetIsUnknownSource()` (internal): Ensures that user is presented with the overview tab if the wizard is run without a source record.

## Triggers

OnAfterGetRecord, OnOpenPage

## Relations

- source table [Table 9988 "Word Template"](../table/9988.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.

- [Codeunit 9987 "Word Template"](../codeunit/9987.md) (5 calls: `MergeTemplate → GetDocument`, `MergeTemplate → Load`, `MergeTemplate → Merge`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (4 calls: `GetDocumentStream → CreateInStream`, `MergeTemplate → CreateInStream`, `MergeTemplate → CreateOutStream`, …)
- [Codeunit 9560 "Document Sharing"](../codeunit/9560.md) (1 call: `OnOpenPage → ShareEnabled`)

## 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). 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: "Word Template Selection Wizard")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
