---
title: "Codeunit 20405 Qlty. Inspec. Gen. Rule Mgmt., extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/points/
object: https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/
app: "Quality Management"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-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 20405 Qlty. Inspec. Gen. Rule Mgmt., extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/points/

7 procedures and triggers with a step in src/Apps/W1/Quality Management/app/src/Configuration/GenerationRule/QltyInspecGenRuleMgmt.Codeunit.al, in source order, read from the text, not from a run.

## SetFilterToApplicableTemplates

[Line 39](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L39), internal.

- [49](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L49) calls `FindAllCompatibleGenerationRules`
- [57](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L57) writes [Table 20407 Qlty. Inspect. Source Config.](https://jonas-paprotka.de/ref/table/20407-qlty-inspect-source-config/) DeleteAll
- [59](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L59) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `FindPossibleTargetsBasedOnConfigRecursive`

## FindMatchingGenerationRule

[Line 124](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L124), internal.

- [129](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L129) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `FindPossibleTargetsBasedOnConfigRecursive`
- [133](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L133) calls `FindFirstGenerationRuleAndRecordBasedOnRecursive`
- [134](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L134) calls [Codeunit 20432 Qlty. Configuration Helpers](https://jonas-paprotka.de/ref/codeunit/20432-qlty-configuration-helpers/) `GetArbitraryMaximumRecursion`

## FindMatchingGenerationRule

[Line 155](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L155), internal.

- [160](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L160) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `FindPossibleTargetsBasedOnConfigRecursive`
- [164](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L164) calls `FindFirstGenerationRuleAndRecordBasedOnRecursive`
- [165](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L165) calls [Codeunit 20432 Qlty. Configuration Helpers](https://jonas-paprotka.de/ref/codeunit/20432-qlty-configuration-helpers/) `GetArbitraryMaximumRecursion`

## FindFirstGenerationRuleAndRecordBasedOnRecursive

[Line 190](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L190), local.

- [230](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L230) calls `DoesMatchItemAttributeFiltersOrNoFilter`
- [232](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L232) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) Insert
- [239](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L239) calls `DoesMatchItemAttributeFiltersOrNoFilter`
- [241](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L241) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) Insert
- [245](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L245) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) Insert
- [257](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L257) writes [Table 20407 Qlty. Inspect. Source Config.](https://jonas-paprotka.de/ref/table/20407-qlty-inspect-source-config/) Insert
- [258](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L258) calls [Codeunit 20408 Qlty. Traversal](https://jonas-paprotka.de/ref/codeunit/20408-qlty-traversal/) `FindFromTableLinkedRecordWithToTable`

## DoesMatchItemAttributeFiltersOrNoFilter

[Line 275](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L275), internal.

- [288](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L288) calls [Codeunit 20403 Qlty. Filter Helpers](https://jonas-paprotka.de/ref/codeunit/20403-qlty-filter-helpers/) `DeserializeFilterIntoItemAttributesBuffer`
- [289](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L289) calls [Codeunit 20403 Qlty. Filter Helpers](https://jonas-paprotka.de/ref/codeunit/20403-qlty-filter-helpers/) `SetItemFilterForItemAttributeFilterSearching`
- [291](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L291) calls [Codeunit 7500 Item Attribute Management](https://jonas-paprotka.de/ref/codeunit/7500-item-attribute-management/) `FindItemsByAttributes`
- [293](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L293) calls [Codeunit 20403 Qlty. Filter Helpers](https://jonas-paprotka.de/ref/codeunit/20403-qlty-filter-helpers/) `SetItemFilterForItemAttributeFilterSearching`

## FindAllCompatibleGenerationRules

[Line 304](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L304), internal.

- [315](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L315) writes [Table 20404 Qlty. Inspection Gen. Rule](https://jonas-paprotka.de/ref/table/20404-qlty-inspection-gen-rule/) Insert

## EnsureCompatibleGenerationRuleExists

[Line 325](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L325), internal.

- [334](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L334) calls `FindAllCompatibleGenerationRules`
- [344](https://jonas-paprotka.de/ref/codeunit/20405-qlty-inspec-gen-rule-mgmt/source/#L344) calls `FindAllCompatibleGenerationRules`

## Source

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

JOP-AL, 2026-11-20.
