---
title: "Codeunit 5069 Word Template Interactions"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/5069-word-template-interactions/
type: codeunit
id: 5069
name: "Word Template Interactions"
app: "Base Application"
namespace: Microsoft.CRM.Interaction
versions: "18-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/5069-word-template-interactions/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 5069 Word Template Interactions

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/5069-word-template-interactions/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.CRM.Interaction |
| Versions | 18-28 |
| Source file | CRM/Interaction/WordTemplateInteractions.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Merge | (var Record Delivery Sorter) | - | public | 18-28 | - | - |
| RunMergedDocument | (var Record Segment Line, var Record Attachment) | - | public | 18-28 | - | - |
| IsWordDocumentExtension | (Text) | Boolean | public | 18-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeCreateInteractionWordTemplate | (var Page Word Template Creation Wizard) | 18-28 | - | - |
| Integration event | OnGetDataSourceOnBeforeRestoreGlobalLanguage | (var Dictionary, var Record Interaction Log Entry, var Record Segment Line) | 19-28 | - | - |
| Integration event | OnBeforeSendMergedDocument | (InStream, Record Delivery Sorter, Text, Record Interaction Log Entry, var Boolean) | 20-28 | - | - |
| Integration event | OnExecuteMergeOnBeforeMergeWordTemplates | (Record Delivery Sorter, Record Interaction Log Entry, var Enum Word Templates Save Format) | 20-28 | - | - |
| Integration event | OnExecuteMergeOnAfterGetInteractLogEntry | (Record Interaction Log Entry) | 23-28 | - | - |
| Integration event | OnGetDataSourceOnBeforeAddDataSources | (var Dictionary, var Record Interaction Log Entry, var Record Contact, var Record Salesperson/Purchaser, var Record Country/Region, Text, Code[10], Code[10], Date, var Boolean) | 23-28 | - | - |
| Integration event | OnExecuteMergeOnBeforeInteractionMergeDataInsert | (var Record Interaction Merge Data, var Record Interaction Log Entry) | 23-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
