---
title: "Codeunit 20416 Qlty. Expression Mgmt."
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/
type: codeunit
id: 20416
name: "Qlty. Expression Mgmt."
app: "Quality Management"
namespace: Microsoft.QualityManagement.Utilities
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/source/?v=28 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.

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

| | |
| --- | --- |
| App | Quality Management |
| Namespace | Microsoft.QualityManagement.Utilities |
| Versions | 28-29 |
| Minors | W1 28.0-29.0; DE 28.0-29.0; US 28.0-29.0, [every minor](https://jonas-paprotka.de/ref/codeunit/20416-qlty-expression-mgmt/editions.json) |
| Source file | src/Utilities/QltyExpressionMgmt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| EvaluateTextExpression | (var QltyInspectionLine: Record "Qlty. Inspection Line"; CurrentQltyInspectionHeader: Record "Qlty. Inspection Header") | Text | internal | 28-29 | - | - |
| EvaluateTextExpression | (Input: Text; CurrentQltyInspectionHeader: Record "Qlty. Inspection Header") | Text | internal | 28-29 | - | - |
| EvaluateTextExpression | (Input: Text; CurrentQltyInspectionHeader: Record "Qlty. Inspection Header"; CurrentQltyInspectionLine: Record "Qlty. Inspection Line") | Text | internal | 28-29 | - | - |
| EvaluateTextExpression | (Input: Text; CurrentQltyInspectionHeader: Record "Qlty. Inspection Header"; EvaluateEmbeddedNumericExpressions: Boolean) | Text | internal | 28-29 | - | - |
| EvaluateTextExpression | (Input: Text; CurrentQltyInspectionHeader: Record "Qlty. Inspection Header"; SpecificQltyInspectionLine: Record "Qlty. Inspection Line"; EvaluateEmbeddedNumericExpressions: Boolean) | Text | internal | 28-29 | - | - |
| EvaluateExpressionForRecord | (Input: Text; RecordVariant: Variant; FormatText: Boolean) | Text | internal | 28-29 | - | - |
| TextReplace | (Input: Text; SearchFor: Text; ReplaceWith: Text) | Text | internal | 28-29 | - | - |
| TextReplace | (Input: Text; SearchFor: Text; ReplaceWith: Text; QltyCaseSensitivity: Enum "Qlty. Case Sensitivity") | Text | internal | 28-29 | - | - |
| ConvertCarriageReturnsToHTMLBRs | (Input: Text) | Text | internal | 28-29 | - | - |
| ConvertHTMLBRsToCarriageReturns | (Input: Text) | Text | internal | 28-29 | - | - |
| TestEvaluateSpecialStringFunctions | (Input: Text) | Text | internal | 28-29 | - | - |
| GetTextFormulaOptions | () | Text | internal | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnEvaluateTextExpressionOnInspectionLine | (var QltyInspectionLine: Record "Qlty. Inspection Line"; CurrentQltyInspectionHeader: Record "Qlty. Inspection Header"; var QltyInspectionTemplateLine: Record "Qlty. Inspection Template Line"; ExpressionInput: Text; var ExpressionResultOutput: Text) | 28-29 | - | - |
| Integration event | OnBeforeEvaluateBuiltInTableLookups | (var Input: Text; var CurrentQltyInspectionHeader: Record "Qlty. Inspection Header"; var CurrentQltyInspectionLine: Record "Qlty. Inspection Line"; var Result: Text; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnEvaluateCustomTableFieldInExpression | (var Input: Text; var CurrentQltyInspectionHeader: Record "Qlty. Inspection Header"; var CurrentQltyInspectionLine: Record "Qlty. Inspection Line"; var EntireTextBeingEvaluated: Text; var TableName: Text; var NumberOrNameOfFieldName: Text; var EntireFindText: Text; var EntireReplaceText: Text) | 28-29 | - | - |
| Integration event | OnBeforeEvaluateTableFieldInExpression | (var EntireTextBeingEvaluated: Text; var TableName: Text; var NumberOrNameOfFieldName: Text; var EntireFindText: Text; var EntireReplaceText: Text; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnBeforeEvaluateStringOnlyFunctionThreeParamExpression | (var EntireTextBeingEvaluated: Text; var StringFunction: Text; var Param1: Text; var Param2: Text; var Param3: Text; var EntireFindText: Text; var EntireReplaceText: Text; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnEvaluateCustomStringOnlyFunctionThreeParamExpression | (var EntireTextBeingEvaluated: Text; var StringFunction: Text; var Param1: Text; var Param2: Text; var Param3: Text; var EntireFindText: Text; var EntireReplaceText: Text) | 28-29 | - | - |

## Source

Symbols: Microsoft.QualityManagement.symbols.bc7b3891-f61b-4883-bbb3-384cdef88bec, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-11-20.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 408a4cc8d3a4c54b60464cc14c964479facb9ba0.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
