---
title: "Codeunit 20416 Qlty. Expression Mgmt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/points/
object: https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/
app: "Quality Management"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/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 20416 Qlty. Expression Mgmt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/points/

10 procedures and triggers with a step in src/Apps/W1/Quality Management/app/src/Utilities/QltyExpressionMgmt.Codeunit.al, in source order, read from the text, not from a run.

## EvaluateTextExpression

[Line 64](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L64), internal.

- [83](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L83) raises `OnEvaluateTextExpressionOnInspectionLine`
- [86](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L86) validates [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) `Test Value`
- [87](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L87) writes [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) Modify

## EvaluateTextExpression

[Line 161](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L161), internal.

- [168](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L168) calls `TextReplace`
- [169](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L169) calls `EvaluateBuiltInTableLookups`
- [174](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L174) calls `EvaluateExpressionForRecord`
- [179](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L179) calls [Table 20406 Qlty. Inspection Line](https://jonas-paprotka.de/ref/table/20406-qlty-inspection-line/) `IsNumericFieldType`
- [180](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L180) calls `TextReplace`
- [182](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L182) calls `TextReplace`
- [191](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L191) calls `TextReplace`
- [199](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L199) calls `TextReplace`
- [203](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L203) calls `EvaluateStringOnlyFunctions`

## EvaluateExpressionForRecord

[Line 213](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L213), internal.

- [226](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L226) calls [Codeunit 20599 Qlty. Misc Helpers](https://jonas-paprotka.de/ref/codeunit/20599-qlty-misc-helpers/) `GetRecordRefFromVariant`
- [246](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L246) calls `TextReplace`

## ConvertCarriageReturnsToHTMLBRs

[Line 316](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L316), internal.

- [325](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L325) calls `TextReplace`
- [326](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L326) calls `TextReplace`
- [327](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L327) calls `TextReplace`

## ConvertHTMLBRsToCarriageReturns

[Line 336](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L336), internal.

- [345](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L345) calls `TextReplace`
- [346](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L346) calls `TextReplace`
- [347](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L347) calls `TextReplace`

## TestEvaluateSpecialStringFunctions

[Line 377](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L377), local.

- [380](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L380) calls `EvaluateBuiltInTableLookups`
- [381](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L381) calls `EvaluateStringOnlyFunctions`

## EvaluateStringOnlyFunctions

[Line 389](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L389), local.

- [397](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L397) calls `DefaultMaxRowsFieldLookup`
- [400](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L400) calls `EvaluateFirstStringOnlyFunctions`

## EvaluateFirstStringOnlyFunctions

[Line 420](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L420), local.

- [439](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L439) calls [Codeunit 3960 Regex](https://jonas-paprotka.de/ref/codeunit/3960-regex/) `Match`
- [445](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L445) calls [Codeunit 3960 Regex](https://jonas-paprotka.de/ref/codeunit/3960-regex/) `Groups`
- [447](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L447) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [449](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L449) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [451](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L451) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [453](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L453) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [455](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L455) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [457](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L457) raises `OnBeforeEvaluateStringOnlyFunctionThreeParamExpression`, IsHandled
- [479](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L479) calls `LookupFieldValueBasedOn`
- [487](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L487) raises `OnEvaluateCustomStringOnlyFunctionThreeParamExpression`
- [489](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L489) calls `TextReplace`

## LookupFieldValueBasedOn

[Line 503](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L503), local.

- [512](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L512) calls [Codeunit 20403 Qlty. Filter Helpers](https://jonas-paprotka.de/ref/codeunit/20403-qlty-filter-helpers/) `IdentifyTableIDFromText`
- [518](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L518) calls [Codeunit 20403 Qlty. Filter Helpers](https://jonas-paprotka.de/ref/codeunit/20403-qlty-filter-helpers/) `SetFiltersByExpressionSyntax`
- [520](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L520) calls [Codeunit 20403 Qlty. Filter Helpers](https://jonas-paprotka.de/ref/codeunit/20403-qlty-filter-helpers/) `IdentifyFieldIDFromText`
- [527](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L527) calls [Codeunit 20599 Qlty. Misc Helpers](https://jonas-paprotka.de/ref/codeunit/20599-qlty-misc-helpers/) `ReadFieldAsText`

## EvaluateBuiltInTableLookups

[Line 537](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L537), local.

- [551](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L551) raises `OnBeforeEvaluateBuiltInTableLookups`, IsHandled
- [557](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L557) calls [Codeunit 3960 Regex](https://jonas-paprotka.de/ref/codeunit/3960-regex/) `Match`
- [563](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L563) calls [Codeunit 3960 Regex](https://jonas-paprotka.de/ref/codeunit/3960-regex/) `Groups`
- [565](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L565) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [567](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L567) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [569](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L569) calls [Table 3964 Groups](https://jonas-paprotka.de/ref/table/3964-groups/) `ReadValue`
- [571](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L571) raises `OnBeforeEvaluateTableFieldInExpression`, IsHandled
- [606](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L606) calls [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `GetRelatedItem`
- [607](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L607) calls [Codeunit 20599 Qlty. Misc Helpers](https://jonas-paprotka.de/ref/codeunit/20599-qlty-misc-helpers/) `ReadFieldAsText`
- [610](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L610) calls [Table 20405 Qlty. Inspection Header](https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/) `GetItemAttributeValue`
- [612](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L612) raises `OnEvaluateCustomTableFieldInExpression`
- [614](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/#L614) calls `TextReplace`

## Source

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

JOP-AL, 2026-11-20.
