---
title: "Codeunit 2114 O365 HTML Templ. Mgt."
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2114-o365-html-templ-mgt/
type: codeunit
id: 2114
name: "O365 HTML Templ. Mgt."
app: "Base Application"
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2114-o365-html-templ-mgt/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 2114 O365 HTML Templ. Mgt.

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2114-o365-html-templ-mgt/

| | |
| --- | --- |
| App | Base Application |
| Versions | 17-28 |
| Source file | Invoicing/O365HTMLTemplMgt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateEmailBodyFromReportSelections | (Record Report Selections, Variant, Text, Text) | Text[250] | public | 17-28 | Pending 27.0 | Replaced with CreateEmailBodyFromReportSelections that accepts a TempBlob as additional parameter. |
| GetTemplateContent | (Code[20]) | Text | public | 17-28 | - | - |
| FillCommonParameters | (var Text, Text, Text, Text, Text) | - | public | 17-28 | - | - |
| FillParameterValueEncoded | (var Text, Text, Text) | - | public | 17-28 | - | - |
| FillParameterValue | (var Text, Text, Text) | - | public | 17-28 | - | - |
| ReplaceBodyFileSendTo | (Text, Text, Text) | - | public | 17-28 | - | - |
| SaveHTML | (Text, Text) | - | public | 17-28 | - | - |
| CreateEmailBodyFromReportSelections | (Record Report Selections, Variant, Text, Text, var Codeunit Temp Blob) | - | public | 27-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnResizeCompanyLogo | (var Codeunit Temp Blob) | 17-28 | - | - |
| Integration event | OnAfterIsSalesInvoiceCanceled | (var Record Sales Invoice Header, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterCalcAndGetAmountIncludingVAT | (var Record Sales Header, var Decimal) | 20-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.
