---
id: object/codeunit/20402
type: object
title: Codeunit 20402 "Qlty. Auto Configure"
summary: Codeunit 20402 "Qlty. Auto Configure" in Quality Management (Microsoft.QualityManagement.Configuration). 13 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - quality management
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 6adff1d8ab245ca540bc2bf690e5d2d7a5cd5d2c5e0e32c0126603aa57816451
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Configuration/QltyAutoConfigure.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/Configuration/QltyAutoConfigure.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10270
    - change/bcapps/9605
object_type: codeunit
object_id: 20402
name: Qlty. Auto Configure
namespace: Microsoft.QualityManagement.Configuration
app: Quality Management
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 51
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 4
  implements: 0
---

# Codeunit 20402 "Qlty. Auto Configure"

> Codeunit 20402 "Qlty. Auto Configure" in Quality Management (Microsoft.QualityManagement.Configuration). 13 public procedures. Introduced in BC29, still in BC30.

Quality Management · Microsoft.QualityManagement.Configuration · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Configuration/QltyAutoConfigure.Codeunit.al) · facts from BC29

## Procedures

- `GetDefaultPassResult(): Text`: Gets the code of the default passing inspection result.
- `GetDefaultFailResult(): Text`: Gets the code of the default failing inspection result.
- `GetDefaultInProgressResult(): Text`: Gets the code of the default in-progress inspection result.
- `GetDefaultPassResultDescription(): Text`: Gets the description of the default passing inspection result.
- `GetDefaultFailResultDescription(): Text`: Gets the description of the default failing inspection result.
- `GetDefaultInProgressResultDescription(): Text`: Gets the description of the default in-progress inspection result.
- `EnsureBasicSetupExists(ShowMessage: Boolean)`: Ensures the setup record, default results, and shipped source configurations exist.
- `EnsureAtLeastOneSourceConfigurationExist(ForceAll: Boolean)` (internal): If there is already at least enabled configuration then this will not do anything. Otherwise it will assume an empty system and create default purchase receipt configuration.
- `DeleteShippedDefaultSourceConfigurations()` (internal): Deletes only the source configurations that are shipped as defaults with Quality Management. Any user-added source configurations are preserved.
- `DeleteAllSourceConfigurations()` (internal): Deletes every source configuration, including user-added ones.
- `IsShippedDefaultSourceConfiguration(Code: Code[20]): Boolean` (internal): Indicates whether the specified code corresponds to a source configuration shipped as a default with Quality Management.
- `ResetShippedDefaultSourceConfiguration(Code: Code[20])` (internal): Deletes and recreates a single shipped default source configuration, discarding any customizations made to it. Does nothing if the specified code does not correspond to a shipped default configuration.
- `CreateDefaultWarehousingConfiguration()` (internal): Ensures the shipped warehouse entry and warehouse journal inspection configurations exist.

Plus 38 local procedures.

## Called by

From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 20421 "Qlty. Install"](../codeunit/20421.md) (1 call: `OnInstallAppPerCompany → EnsureBasicSetupExists`)
- [Page 20400 "Qlty. Management Setup"](../page/20400.md) (1 call: `OnOpenPage → EnsureBasicSetupExists`)
- [Page 20410 "Qlty. Inspect. Source Config."](../page/20410.md) (1 call: `UpdateControls → IsShippedDefaultSourceConfiguration`)
- [Page 20412 "Qlty. Ins. Source Config. List"](../page/20412.md) (1 call: `OnInit → EnsureAtLeastOneSourceConfigurationExist`)

## Recent changes

- 2026-08-20 [#10270 [Quality Management] Repair and improve XML documentation of procedures](../../changes/bcapps/10270.md) (main, BC30, refactor)
- 2026-07-23 [#9605 [Quality Management] UI actions to restore default shipped source configurations](../../changes/bcapps/9605.md) (main, BC30, feature)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "codeunit", object_name: "Qlty. Auto Configure")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
