---
id: object/codeunit/20423
type: object
title: Codeunit 20423 "Qlty. Workflow Setup"
summary: Codeunit 20423 "Qlty. Workflow Setup" in Quality Management (Microsoft.QualityManagement.Workflow). 27 public procedures, 5 event subscribers. 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: 3f6f7ad5e12109646bd9eba623f983b834e43a0022b7a53649b8146f6fc36829
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/Quality%20Management/app/src/Workflow/QltyWorkflowSetup.Codeunit.al
    title: src/Apps/W1/Quality Management/app/src/Workflow/QltyWorkflowSetup.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/12097
    - change/bcapps/12062
    - change/bcapps/10270
object_type: codeunit
object_id: 20423
name: Qlty. Workflow Setup
namespace: Microsoft.QualityManagement.Workflow
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: 33
  events: 0
  subscribers: 5
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 3
  called_by: 4
  implements: 0
---

# Codeunit 20423 "Qlty. Workflow Setup"

> Codeunit 20423 "Qlty. Workflow Setup" in Quality Management (Microsoft.QualityManagement.Workflow). 27 public procedures, 5 event subscribers. Introduced in BC29, still in BC30.

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

## Event subscriptions

- HandleOnAddWorkflowTableRelationsToLibrary subscribes to Codeunit "Workflow Event Handling" OnAddWorkflowTableRelationsToLibrary
- HandleOnAddWorkflowEventsToLibrary subscribes to Codeunit "Workflow Event Handling" OnAddWorkflowEventsToLibrary
- HandleOnAddWorkflowEventPredecessorsToLibrary subscribes to Codeunit "Workflow Event Handling" OnAddWorkflowEventPredecessorsToLibrary
- HandleOnAddWorkflowResponsePredecessorsToLibrary subscribes to Codeunit "Workflow Response Handling" OnAddWorkflowResponsePredecessorsToLibrary
- HandleOnAddWorkflowResponsesToLibrary subscribes to Codeunit "Workflow Response Handling" OnAddWorkflowResponsesToLibrary

## Procedures

- `GetWorkflowResponseCreateInspection(): Text`: Returns the token for a workflow response to create an inspection.
- `GetWorkflowResponseFinishInspection(): Text` (internal): Returns the token for a workflow response to finish an inspection
- `GetWorkflowResponseReopenInspection(): Text` (internal): Returns the token for a workflow response to re-open an inspection
- `GetWorkflowResponseCreateReinspection(): Text` (internal): Returns the token for a workflow response to create a reinspection.
- `GetWorkflowResponseBlockLot(): Text` (internal): Returns the token for a workflow response to block a lot
- `GetWorkflowResponseBlockSerial(): Text` (internal): Returns the token for a workflow response to block a serial
- `GetWorkflowResponseBlockPackage(): Text` (internal): Returns the token for a workflow response to block a package
- `GetWorkflowResponseUnblockLot(): Text` (internal): Returns the token for a workflow response to Unblock a lot
- `GetWorkflowResponseUnblockSerial(): Text` (internal): Returns the token for a workflow response to Unblock a serial
- `GetWorkflowResponseUnblockPackage(): Text` (internal): Returns the token for a workflow response to Unblock a package
- `GetWorkflowResponseMoveInventory(): Text`: Returns the token for a workflow response to move inventory
- `GetWorkflowResponseQuarantineLicensePlate(): Text` (internal): Returns the token for a workflow response to quarantine a license plate
- `GetWorkflowResponseUnQuarantineLicensePlate(): Text` (internal): Returns the token for a workflow response to un-quarantine a license plate.
- `GetWorkflowResponseInternalPutAway(): Text`: Returns the token for a workflow response to create an internal put-away.
- `GetWorkflowResponseSetDatabaseValue(): Text` (internal): Returns the token for a workflow response to set a database value
- `GetWorkflowResponseInventoryAdjustment(): Text`: Returns the token for a workflow response to create a inventory adjustment
- `GetWorkflowResponseChangeItemTracking(): Text` (internal): Returns the token for a workflow response to change item tracking
- `GetWorkflowResponseCreateTransfer(): Text`: Returns the token for a workflow response to create a transfer
- `GetWorkflowResponseCreatePurchaseReturn(): Text`: Returns the token for a workflow response to create a purchase return
- `GetQualityInspectionPrefix(): Text` (internal): Returns the generic quality inspection workflow prefix.
- `GetInspectionCreatedEvent(): Code[128]` (internal): The token for the event when an inspection has been created.
- `GetInspectionHasChangedEvent(): Code[128]`: The token for the event when an inspection has been changed.
- `GetInspectionFinishedEvent(): Code[128]`: The token for the event when an inspection has been finished.
- `GetInspectionReopenedEvent(): Code[128]`: The token for the event when an inspection has been re-opened.
- `GetInspectionRejectEventTok(): Code[128]` (internal): The token for the event when an inspection has been rejected in an approval.
- `GetInspectionApproveEventTok(): Code[128]` (internal): The token for the event when an inspection has been approved in an approval system.
- `GetInspectionDelegateEventTok(): Code[128]` (internal): The token for the event when an inspection has been delegated in an approval.

Plus 1 local procedures.

## Calls

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 1521 "Workflow Response Handling"](../codeunit/1521.md) (3 calls: `HandleOnAddWorkflowResponsePredecessorsToLibrary → AddResponsePredecessor`, `HandleOnAddWorkflowResponsesToLibrary → AddResponsePredecessor`, `HandleOnAddWorkflowResponsesToLibrary → AddResponseToLibrary`)
- [Codeunit 1520 "Workflow Event Handling"](../codeunit/1520.md) (2 calls: `HandleOnAddWorkflowEventPredecessorsToLibrary → AddEventPredecessor`, `HandleOnAddWorkflowEventsToLibrary → AddEventToLibrary`)
- [Codeunit 1502 "Workflow Setup"](../codeunit/1502.md) (1 call: `AddEmployeeUserRelationships → InsertTableRelation`)

## Called by

- [Codeunit 20424 "Qlty. Workflow Response"](../codeunit/20424.md) (20 calls: `ClearInspectionStatusFilterIfRequired → GetInspectionFinishedEvent`, `ClearInspectionStatusFilterIfRequired → GetInspectionReopenedEvent`, `HandleOnExecuteWorkflowResponse → GetQualityInspectionPrefix`, …)
- [Page extension 20403 "Qlty. Workflow Resp. Options"](../pageextension/20403.md) (7 calls: `Qlty_SetGroupVisibility → GetWorkflowResponseChangeItemTracking`, `Qlty_SetGroupVisibility → GetWorkflowResponseCreatePurchaseReturn`, `Qlty_SetGroupVisibility → GetWorkflowResponseCreateTransfer`, …)
- [Codeunit 20426 "Qlty. Start Workflow"](../codeunit/20426.md) (4 calls: `StartWorkflowInspectionChanged → GetInspectionHasChangedEvent`, `StartWorkflowInspectionCreated → GetInspectionCreatedEvent`, `StartWorkflowInspectionFinished → GetInspectionFinishedEvent`, …)
- [Codeunit 20425 "Qlty. Workflow Approvals"](../codeunit/20425.md) (3 calls: `HandleOnApproveTheApprovalRequestOnApproveTimeCardApproval → GetInspectionApproveEventTok`, `RunWorkflowOnDelegateTimeCardApproval → GetInspectionDelegateEventTok`, `RunWorkflowOnRejectTimeCardApproval → GetInspectionRejectEventTok`)

## Recent changes

- 2026-10-05 [#12097 [29.X]-[Quality Management] Workflow events are not localized](../../changes/bcapps/12097.md) (releases/29.x, BC29, fix)
- 2026-10-05 [#12062 [Master]-[Quality Management] Workflow events are not localized](../../changes/bcapps/12062.md) (main, BC30, fix)
- 2026-08-20 [#10270 [Quality Management] Repair and improve XML documentation of procedures](../../changes/bcapps/10270.md) (main, BC30, refactor)

## 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. Workflow Setup")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
