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

JOP-AL, https://jonas-paprotka.de/ref/codeunit/131000-library-utility/points/

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

## CreateNoSeries

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

- [27](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L27) calls `GenerateRandomCode`

## CreateNoSeries

[Line 32](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L32).

- [34](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L34) calls [Codeunit 134510 Library - No. Series](https://jonas-paprotka.de/ref/codeunit/134510-library-no-series/) `CreateNoSeries`

## CreateNoSeriesLine

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

- [43](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L43) calls [Codeunit 134510 Library - No. Series](https://jonas-paprotka.de/ref/codeunit/134510-library-no-series/) `CreateNoSeriesLine`

## CreateRecordLink

[Line 55](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L55).

- [63](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L63) calls [Codeunit 700 Page Management](https://jonas-paprotka.de/ref/codeunit/700-page-management/) `GetPageID`
- [69](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L69) writes [Table 2000000068 Record Link](https://jonas-paprotka.de/ref/table/2000000068-record-link/) Insert

## GetNewRecNo

[Line 194](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L194).

- [199](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L199) calls `GetNewLineNo`

## GetGlobalNoSeriesCode

[Line 238](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L238).

- [244](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L244) calls [Codeunit 134510 Library - No. Series](https://jonas-paprotka.de/ref/codeunit/134510-library-no-series/) `CreateNoSeries`
- [245](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L245) calls [Codeunit 134510 Library - No. Series](https://jonas-paprotka.de/ref/codeunit/134510-library-no-series/) `CreateNoSeriesLine`

## GetNextNoFromNoSeries

[Line 275](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L275).

- [279](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L279) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `PeekNextNo`

## GenerateRandomCode

[Line 282](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L282).

- [294](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L294) calls `GenerateGUID`
- [296](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L296) calls `GenerateGUID`

## GenerateRandomCodeWithLength

[Line 302](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L302).

- [313](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L313) calls `GenerateRandomXMLText`

## GenerateRandomCode20

[Line 320](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L320).

- [330](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L330) calls `GenerateGUID`

## GenerateRandomText

[Line 336](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L336).

- [342](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L342) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## GenerateRandomUnicodeText

[Line 347](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L347).

- [353](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L353) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## GenerateRandomXMLText

[Line 358](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L358).

- [365](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L365) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## GenerateRandomNumericText

[Line 378](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L378).

- [383](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L383) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## GenerateRandomAlphabeticText

[Line 386](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L386).

- [408](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L408) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## GenerateRandomEmail

[Line 413](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L413).

- [415](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L415) calls `GenerateRandomAlphabeticText`
- [415](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L415) calls `GenerateRandomAlphabeticText`
- [415](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L415) calls `GenerateRandomAlphabeticText`

## GenerateRandomEmails

[Line 418](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L418).

- [421](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L421) calls `GenerateRandomXMLText`
- [421](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L421) calls `GenerateRandomXMLText`
- [421](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L421) calls `GenerateRandomXMLText`
- [422](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L422) calls `GenerateRandomXMLText`
- [422](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L422) calls `GenerateRandomXMLText`
- [422](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L422) calls `GenerateRandomXMLText`
- [423](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L423) calls `GenerateRandomXMLText`
- [423](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L423) calls `GenerateRandomXMLText`
- [423](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L423) calls `GenerateRandomXMLText`

## GenerateRandomPhoneNo

[Line 426](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L426).

- [435](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L435) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`
- [442](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L442) calls `GenerateRandomNumericText`
- [443](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L443) calls `GenerateRandomNumericText`
- [444](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L444) calls `GenerateRandomNumericText`
- [444](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L444) calls `GenerateRandomNumericText`

## GenerateRandomFraction

[Line 447](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L447).

- [449](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L449) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## GenerateRandomDate

[Line 452](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L452).

- [458](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L458) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandInt`

## GenerateGUID

[Line 462](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L462).

- [469](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L469) calls [Codeunit 134510 Library - No. Series](https://jonas-paprotka.de/ref/codeunit/134510-library-no-series/) `CreateNoSeries`
- [470](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L470) calls [Codeunit 134510 Library - No. Series](https://jonas-paprotka.de/ref/codeunit/134510-library-no-series/) `CreateNoSeriesLine`
- [474](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L474) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNextNo`

## GenerateRandomRec

[Line 484](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L484).

- [494](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L494) calls `GenerateRandomXMLText`
- [496](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L496) calls `GenerateRandomDate`
- [498](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L498) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandDec`

## GenerateMOD97CompliantCode

[Line 503](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L503).

- [507](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L507) calls [Codeunit 130440 Library - Random](https://jonas-paprotka.de/ref/codeunit/130440-library-random/) `RandIntInRange`

## FindOrCreateCodeRecord

[Line 537](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L537).

- [542](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L542) calls `VerifyRecordHasCodeKey`
- [544](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L544) calls `GenerateRandomCode`

## CreateCodeRecord

[Line 550](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L550).

- [555](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L555) calls `VerifyRecordHasCodeKey`
- [556](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L556) calls `GenerateRandomCode`

## UpdateSetupNoSeriesCode

[Line 561](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L561).

- [570](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L570) calls `GetGlobalNoSeriesCode`

## AddTempField

[Line 577](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L577).

- [584](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L584) writes [Table 2000000041 Field](https://jonas-paprotka.de/ref/table/2000000041-field/) Insert

## GetMaxFieldOptionIndex

[Line 606](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L606).

- [618](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L618) calls `GetMaxOptionIndex`

## FillFieldMaxText

[Line 621](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L621).

- [628](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L628) calls `GenerateRandomText`

## GetNoSeriesLine

[Line 681](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L681).

- [685](https://jonas-paprotka.de/ref/codeunit/131000-library-utility/source/#L685) calls [Codeunit 310 No. Series](https://jonas-paprotka.de/ref/codeunit/310-no-series/) `GetNoSeriesLine`

## Source

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

JOP-AL, 2026-11-20.
