---
title: "Codeunit 132210 Library - Templates, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/132210-library-templates/points/
object: https://jonas-paprotka.de/ref/codeunit/132210-library-templates/
app: "Application Test Library"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/132210-library-templates/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 132210 Library - Templates, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/132210-library-templates/points/

17 procedures and triggers with a step in src/Layers/W1/Tests/ApplicationTestLibrary/LibraryTemplates.Codeunit.al, in source order, read from the text, not from a run.

## DisableTemplatesFeature

[Line 23](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L23).

- [27](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L27) calls [Codeunit 132210 Library - Templates](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/) `SetTemplatesFeatureEnabled`

## EnableTemplatesFeature

[Line 30](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L30).

- [34](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L34) calls [Codeunit 132210 Library - Templates](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/) `SetTemplatesFeatureEnabled`

## CreateVendorTemplate

[Line 37](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L37).

- [40](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L40) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `Code`
- [40](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L40) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [41](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L41) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `Description`
- [42](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L42) writes [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) Insert(true)

## CreateVendorTemplateWithData

[Line 45](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L45).

- [52](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L52) calls `CreateVendorTemplate`
- [54](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L54) calls [Codeunit 130512 Library - Purchase](https://jonas-paprotka.de/ref/codeunit/130512-library-purchase/) `CreateVendorPostingGroup`
- [55](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L55) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindGeneralPostingSetupInvtFull`
- [56](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L56) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindVATPostingSetupInvt`
- [57](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L57) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindPaymentMethod`
- [59](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L59) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `Vendor Posting Group`
- [60](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L60) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `Gen. Bus. Posting Group`
- [61](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L61) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `VAT Bus. Posting Group`
- [62](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L62) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `Payment Method Code`
- [63](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L63) validates [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) `Payment Terms Code`
- [63](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L63) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindPaymentTermsCode`
- [64](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L64) writes [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) Modify(true)

## CreateVendorTemplateWithDataAndDimensions

[Line 67](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L67).

- [69](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L69) calls `CreateVendorTemplateWithData`
- [70](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L70) calls `CreateTemplateGlobalDimensions`
- [71](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L71) calls `CreateTemplateDimensions`

## CreateCustomerTemplate

[Line 74](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L74).

- [77](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L77) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `Code`
- [77](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L77) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [78](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L78) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `Description`
- [79](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L79) writes [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) Insert(true)

## CreateCustomerTemplateWithData

[Line 82](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L82).

- [89](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L89) calls `CreateCustomerTemplate`
- [91](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L91) calls [Codeunit 130509 Library - Sales](https://jonas-paprotka.de/ref/codeunit/130509-library-sales/) `CreateCustomerPostingGroup`
- [92](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L92) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindGeneralPostingSetupInvtFull`
- [93](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L93) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindVATPostingSetupInvt`
- [94](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L94) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindPaymentMethod`
- [96](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L96) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `Customer Posting Group`
- [97](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L97) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `Gen. Bus. Posting Group`
- [98](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L98) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `VAT Bus. Posting Group`
- [99](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L99) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `Payment Method Code`
- [100](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L100) validates [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) `Payment Terms Code`
- [100](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L100) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindPaymentTermsCode`
- [101](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L101) writes [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) Modify(true)

## CreateCustomerTemplateWithDataAndDimensions

[Line 104](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L104).

- [106](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L106) calls `CreateCustomerTemplateWithData`
- [107](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L107) calls `CreateTemplateGlobalDimensions`
- [108](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L108) calls `CreateTemplateDimensions`

## CreateItemTemplate

[Line 111](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L111).

- [114](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L114) validates [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) `Code`
- [114](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L114) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [115](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L115) validates [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) `Description`
- [116](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L116) writes [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) Insert(true)

## CreateItemTemplateWithData

[Line 119](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L119).

- [126](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L126) calls `CreateItemTemplate`
- [129](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L129) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `CreateInventoryPostingGroup`
- [130](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L130) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindGeneralPostingSetupInvtFull`
- [131](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L131) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindVATPostingSetupInvt`
- [132](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L132) calls [Codeunit 132201 Library - Inventory](https://jonas-paprotka.de/ref/codeunit/132201-library-inventory/) `CreateUnitOfMeasureCode`
- [134](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L134) validates [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) `Inventory Posting Group`
- [135](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L135) validates [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) `Gen. Prod. Posting Group`
- [136](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L136) validates [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) `VAT Prod. Posting Group`
- [137](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L137) validates [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) `Base Unit of Measure`
- [138](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L138) writes [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) Modify(true)

## CreateItemTemplateWithDataAndDimensions

[Line 141](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L141).

- [143](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L143) calls `CreateItemTemplateWithData`
- [144](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L144) calls `CreateTemplateGlobalDimensions`
- [145](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L145) calls `CreateTemplateDimensions`

## CreateEmployeeTemplate

[Line 148](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L148).

- [151](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L151) validates [Table 1384 Employee Templ.](https://jonas-paprotka.de/ref/table/1384-employee-templ/) `Code`
- [151](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L151) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [152](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L152) validates [Table 1384 Employee Templ.](https://jonas-paprotka.de/ref/table/1384-employee-templ/) `Description`
- [153](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L153) writes [Table 1384 Employee Templ.](https://jonas-paprotka.de/ref/table/1384-employee-templ/) Insert(true)

## CreateEmployeeTemplateWithData

[Line 156](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L156).

- [161](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L161) calls `CreateEmployeeTemplate`
- [164](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L164) validates [Table 5221 Employee Posting Group](https://jonas-paprotka.de/ref/table/5221-employee-posting-group/) `Code`
- [164](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L164) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [165](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L165) writes [Table 5221 Employee Posting Group](https://jonas-paprotka.de/ref/table/5221-employee-posting-group/) Insert
- [168](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L168) validates [Table 5212 Employee Statistics Group](https://jonas-paprotka.de/ref/table/5212-employee-statistics-group/) `Code`
- [168](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L168) calls [Codeunit 131000 Library - Utility](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/) `GenerateRandomCode`
- [169](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L169) writes [Table 5212 Employee Statistics Group](https://jonas-paprotka.de/ref/table/5212-employee-statistics-group/) Insert
- [171](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L171) validates [Table 1384 Employee Templ.](https://jonas-paprotka.de/ref/table/1384-employee-templ/) `Employee Posting Group`
- [172](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L172) validates [Table 1384 Employee Templ.](https://jonas-paprotka.de/ref/table/1384-employee-templ/) `Statistics Group Code`
- [173](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L173) writes [Table 1384 Employee Templ.](https://jonas-paprotka.de/ref/table/1384-employee-templ/) Modify(true)

## CreateEmployeeTemplateWithDataAndDimensions

[Line 176](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L176).

- [178](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L178) calls `CreateEmployeeTemplateWithData`
- [179](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L179) calls `CreateTemplateGlobalDimensions`
- [180](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L180) calls `CreateTemplateDimensions`

## CreateTemplateGlobalDimensions

[Line 183](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L183).

- [190](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L190) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `GetGlobalDimCodeValue`
- [191](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L191) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `CreateDefaultDimension`

## CreateTemplateDimensions

[Line 195](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L195).

- [201](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L201) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`
- [202](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L202) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `CreateDimWithDimValue`
- [203](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L203) calls [Codeunit 131001 Library - Dimension](https://jonas-paprotka.de/ref/codeunit/131001-library-dimension/) `CreateDefaultDimension`

## UpdateTemplatesVATGroups

[Line 212](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L212).

- [219](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L219) calls [Codeunit 131300 Library - ERM](https://jonas-paprotka.de/ref/codeunit/131300-library-erm/) `FindVATPostingSetup`
- [222](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L222) writes [Table 1381 Customer Templ.](https://jonas-paprotka.de/ref/table/1381-customer-templ/) ModifyAll
- [224](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L224) writes [Table 1383 Vendor Templ.](https://jonas-paprotka.de/ref/table/1383-vendor-templ/) ModifyAll
- [226](https://jonas-paprotka.de/ref/codeunit/132210-library-templates/source/#L226) writes [Table 1382 Item Templ.](https://jonas-paprotka.de/ref/table/1382-item-templ/) ModifyAll

## Source

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

JOP-AL, 2026-11-20.
