---
title: "Codeunit 8612 Config. Template Management"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/8612-config-template-management/
type: codeunit
id: 8612
name: "Config. Template Management"
app: "Base Application"
namespace: System.IO
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/8612-config-template-management/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 8612 Config. Template Management

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/8612-config-template-management/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.IO |
| Versions | 17-28 |
| Source file | System/RapidStart/ConfigTemplateManagement.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| UpdateFromTemplateSelection | (var RecordRef) | - | public | 17-28 | - | - |
| UpdateRecord | (Record Config. Template Header, var RecordRef) | - | public | 17-28 | - | - |
| InsertTemplate | (var RecordRef, Record Config. Template Header, Boolean, var Record Field) | - | public | 17-28 | - | - |
| ApplyTemplate | (var RecordRef, var Record Field, var RecordRef, var Record Config. Template Header) | Boolean | public | 17-28 | - | - |
| TestHierarchy | (Record Config. Template Line) | - | public | 17-28 | - | - |
| SetUpdatingRelatedTable | (Boolean) | - | public | 17-28 | - | - |
| CreateConfigTemplateAndLines | (var Code[10], Text[100], Integer, FieldRef) | - | public | 17-28 | - | - |
| UpdateConfigTemplateAndLines | (Code[10], Text[100], Integer, FieldRef) | - | public | 17-28 | - | - |
| ApplyTemplateLinesWithoutValidation | (Record Config. Template Header, var RecordRef) | - | public | 17-28 | - | - |
| GetNextAvailableCode | (Integer) | Code[10] | public | 17-28 | - | - |
| AddRelatedTemplate | (Code[10], Code[10]) | - | public | 17-28 | - | - |
| RemoveRelatedTemplate | (Code[10], Code[10]) | - | public | 17-28 | - | - |
| DeleteRelatedTemplates | (Code[10], Integer) | - | public | 17-28 | - | - |
| ReplaceDefaultValueForAllTemplates | (Integer, Integer, Text[250]) | - | public | 17-28 | - | - |
| InsertConfigTemplateLineFromField | (Code[10], FieldRef, Integer) | - | public | 17-28 | - | - |
| InsertConfigTemplateLine | (Code[10], Integer, Text[250], Integer) | - | public | 17-18 | - | - |
| RemoveEmptyFieldsFromTemplateHeader | (var RecordRef, Record Config. Template Header) | - | public | 17-28 | - | - |
| LookupFieldValueFromConfigTemplateLine | (Record Config. Template Line, var Text) | Boolean | public | 17-28 | - | - |
| InsertConfigTemplateLine | (Code[10], Integer, Text[2048], Integer) | - | public | 19-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnAfterIsNotInitializedFieldRef | (FieldRef, var Boolean) | 17-28 | - | - |
| Integration event | OnAfterUpdateRecordWithSkipFields | (Record Config. Template Header, var RecordRef, Boolean, var Record Field) | 17-28 | - | - |
| Integration event | OnApplyTemplLinesWithoutValidationAfterRecRefCheck | (Record Config. Template Header, Record Config. Template Line, var RecordRef) | 17-28 | - | - |
| Integration event | OnBeforeInsertTemplate | (var Record Config. Template Line, var Record Config. Template Header) | 17-28 | - | - |
| Integration event | OnBeforeUpdateWithSkipFields | (var Boolean, var RecordRef, Record Field) | 17-20 | - | - |
| Integration event | OnInsertTemplateCaseElse | (var Record Config. Template Line, var Record Config. Template Header, FieldRef, var RecordRef, Boolean, var Record Field) | 17-18 | - | - |
| Integration event | OnBeforeUpdateFromTemplateSelection | (var Record Config. Template Header, RecordRef) | 18-22 | - | - |
| Integration event | OnBeforeModifyRecordWithField | (var RecordRef, FieldRef, Text[2048], Integer, var Boolean) | 19-21 | - | - |
| Integration event | OnInsertTemplateCaseElse | (var Record Config. Template Line, var Record Config. Template Header, FieldRef, var RecordRef, Boolean, var Record Field, RecordRef) | 19-28 | - | - |
| Integration event | OnInsertRecordWithKeyFieldsOnBeforeRecRefInsert | (var RecordRef) | 20-28 | - | - |
| Integration event | OnBeforeInsertRecordWithKeyFields | (var RecordRef, Record Config. Template Header) | 20-28 | - | - |
| Integration event | OnBeforeTestKeyFields | (var RecordRef, Record Config. Template Header, var Boolean, var Boolean) | 21-28 | - | - |
| Integration event | OnBeforeUpdateWithSkipFields | (var Boolean, var RecordRef, var Record Field) | 21-28 | - | - |
| Integration event | OnBeforeModifyRecordWithField | (var RecordRef, FieldRef, Text[2048], Integer, var Boolean, Record Config. Template Line) | 22-27 | Pending 25.0 | Replaced by event OnInsertTemplateBeforeValidateFieldValue |
| Integration event | OnInsertRecordWithKeyFieldsOnBeforeValidateFieldValue | (var Record Config. Template Header, var Record Config. Template Line) | 22-28 | - | - |
| Integration event | OnApplyTemplateLinesWithoutValidationOnBeforeValidateFieldValue | (var Record Config. Template Header, var Record Config. Template Line) | 22-28 | - | - |
| Integration event | OnBeforeUpdateFromTemplateSelection | (var Record Config. Template Header, RecordRef, var Boolean) | 23-28 | - | - |
| Integration event | OnCreateConfigTemplateAndLinesOnBeforeConfigTemplateHeaderInsert | (var Record Config. Template Header) | 23-28 | - | - |
| Integration event | OnAfterInsertTemplateBeforeModify | (var Record Config. Template Line, var Record Config. Template Header, var Boolean, var Boolean) | 25-28 | - | - |
| Integration event | OnInsertTemplateBeforeValidateFieldValue | (var RecordRef, FieldRef, Text[2048], Integer, var Boolean, Record Config. Template Line) | 25-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.
