---
title: "Table 20405 Qlty. Inspection Header"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/
type: table
id: 20405
name: "Qlty. Inspection Header"
app: "Quality Management"
namespace: Microsoft.QualityManagement.Document
versions: "28-29"
build: 29.0.54011.55644
countries: "W1, DE, US"
source: "https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/?v=28 https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/source/"
checked: 2026-11-20
changed: 2026-11-13
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/"
---

# Table 20405 Qlty. Inspection Header

JOP-AL, https://jonas-paprotka.de/ref/table/20405-qlty-inspection-header/

| | |
| --- | --- |
| App | Quality Management |
| Namespace | Microsoft.QualityManagement.Document |
| 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/table/20405-qlty-inspection-header/editions.json) |
| Source file | src/Document/QltyInspectionHeader.Table.al |

## Fields

| Id | Name | Type | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| 1 | No. | Code[20] | 28-29 | - | - |
| 2 | Re-inspection No. | Integer | 28-29 | - | - |
| 4 | Most Recent Re-inspection | Boolean | 28-29 | - | - |
| 5 | Template Code | Code[20] | 28-29 | - | - |
| 6 | Description | Text[250] | 28-29 | - | - |
| 8 | Status | Enum Qlty. Inspection Status | 28-29 | - | - |
| 11 | Source Quantity (Base) | Decimal | 28-29 | - | - |
| 13 | Pass Quantity | Decimal | 28-29 | - | - |
| 15 | Fail Quantity | Decimal | 28-29 | - | - |
| 17 | Sample Size | Integer | 28-29 | - | - |
| 21 | Assigned User ID | Code[50] | 28-29 | - | - |
| 23 | Planned Start Date | DateTime | 28-29 | - | - |
| 25 | Finished Date | DateTime | 28-29 | - | - |
| 26 | Finished By User ID | Code[50] | 28-29 | - | - |
| 31 | Result Code | Code[20] | 28-29 | - | - |
| 32 | Result Description | Text[100] | 28-29 | - | - |
| 33 | Evaluation Sequence | Integer | 28-29 | - | - |
| 35 | Location Code | Code[10] | 28-29 | - | - |
| 41 | Most Recent Picture | Media | 28-29 | - | - |
| 45 | Existing Inspections This Rec. | Integer | 28-29 | - | - |
| 46 | Existing Inspections This Item | Integer | 28-29 | - | - |
| 51 | Source Table No. | Integer | 28-29 | - | - |
| 52 | Source Table Name | Text[249] | 28-29 | - | - |
| 53 | Source Type | Integer | 28-29 | - | - |
| 54 | Source Sub Type | Integer | 28-29 | - | - |
| 55 | Source Document No. | Code[20] | 28-29 | - | - |
| 56 | Source Document Line No. | Integer | 28-29 | - | - |
| 58 | Source Task No. | Code[20] | 28-29 | - | - |
| 61 | Source Item No. | Code[20] | 28-29 | - | - |
| 62 | Source Variant Code | Code[10] | 28-29 | - | - |
| 65 | Source Serial No. | Code[50] | 28-29 | - | - |
| 66 | Source Lot No. | Code[50] | 28-29 | - | - |
| 67 | Source Package No. | Code[50] | 28-29 | - | - |
| 71 | Trigger Record Table No. | Integer | 28-29 | - | - |
| 72 | Trigger RecordId | RecordId | 28-29 | - | - |
| 75 | Source Record Table No. | Integer | 28-29 | - | - |
| 76 | Source RecordId | RecordId | 28-29 | - | - |
| 78 | Source RecordId 2 | RecordId | 28-29 | - | - |
| 79 | Source RecordId 3 | RecordId | 28-29 | - | - |
| 80 | Source RecordId 4 | RecordId | 28-29 | - | - |
| 90 | Source Custom 1 | Text[60] | 28-29 | - | - |
| 91 | Source Custom 2 | Text[60] | 28-29 | - | - |
| 92 | Source Custom 3 | Text[60] | 28-29 | - | - |
| 93 | Source Custom 4 | Text[60] | 28-29 | - | - |
| 94 | Source Custom 5 | Text[60] | 28-29 | - | - |
| 95 | Source Custom 6 | Text[60] | 28-29 | - | - |
| 96 | Source Custom 7 | Integer | 28-29 | - | - |
| 97 | Source Custom 8 | Integer | 28-29 | - | - |
| 98 | Source Custom 9 | Decimal | 28-29 | - | - |
| 99 | Source Custom 10 | Decimal | 28-29 | - | - |

## Keys

| Name | Fields | Sum fields | Versions |
| --- | --- | --- | --- |
| Key1, clustered | No., Re-inspection No. | - | 28-29 |
| Key2 | Template Code, Source Table No., Source Type, Source Sub Type, Source Document No., Source Document Line No., Source Item No., Source Variant Code, Source Lot No., Source Serial No., Source Package No., Source Task No. | - | 28-29 |
| Key3 | Template Code, Source Custom 1, Source Custom 2, Source Custom 3, Source Custom 4, Source Custom 5, Source Custom 6, Source Item No., Source Variant Code, Source Lot No., Source Serial No., Source Package No. | - | 28-29 |
| Key4 | Template Code, Source Table No., Source Type, Source Sub Type, Source Document No., Source Document Line No., Source Item No., Source Variant Code, Source Lot No., Source Serial No., Source Package No., Source Task No., Source Custom 1, Source Custom 2, Source Custom 3, Source Custom 4, Source Custom 5, Source Custom 6 | - | 28-29 |
| Key5 | Source Item No., Source Variant Code, Source Lot No., Source Serial No., Source Package No., Template Code | - | 28-29 |
| Key6 | Source Record Table No., Source RecordId, Trigger Record Table No., Trigger RecordId | - | 28-29 |
| Key7 | Template Code, Source RecordId, Source Record Table No. | - | 28-29 |
| Key8 | SystemCreatedBy, SystemCreatedAt, Template Code | - | 28-29 |
| Key9 | Source Document No., Source Document Line No., Source Item No., Source Variant Code | - | 28-29 |
| Key10 | SystemModifiedAt, SystemCreatedAt, SystemModifiedBy, SystemCreatedBy, Source Item No., Source Variant Code, Source Lot No., Source Serial No., Source Package No. | - | 28-29 |
| Key11 | Status, Assigned User ID, Planned Start Date | - | 28-29 |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| SetTestValue | (NumberOrNameOfTestCode: Text; NumberOrNameOfTestValue: Text) | - | public | 28-29 | - | - |
| AssistEditTest | (NumberOrNameOfTestCode: Text) | - | public | 28-29 | - | - |
| UpdateResultFromLines | () | - | public | 28-29 | - | - |
| InitInspectionNumber | () | - | internal | 28-29 | - | - |
| SetIsCreating | (IsCreating: Boolean) | - | internal | 28-29 | - | - |
| GetIsCreating | () | Boolean | internal | 28-29 | - | - |
| AssignToSelf | () | - | public | 28-29 | - | - |
| ReopenInspection | () | - | public | 28-29 | - | - |
| FinishInspection | () | - | public | 28-29 | - | - |
| VerifyTrackingBeforeFinish | () | - | internal | 28-29 | - | - |
| GetPostedInventory | () | Decimal | internal | 28-29 | - | - |
| GetReservedInventory | () | Decimal | internal | 28-29 | - | - |
| CreateReinspection | () | - | public | 28-29 | - | - |
| CreateReinspection | (var ReinspectionQltyInspectionHeader: Record "Qlty. Inspection Header") | - | public | 28-29 | - | - |
| HasMoreRecentReinspection | () | Boolean | internal | 28-29 | - | - |
| IsItemTrackingUsed | () | Boolean | internal | 28-29 | - | - |
| IsItemTrackingUsed | (var TempItemTrackingSetup: Record "Item Tracking Setup" temporary) | Boolean | internal | 28-29 | - | - |
| GetControlCaptionClass | (Input: Text) | Text | internal | 28-29 | - | - |
| GetControlVisibleState | (Input: Text) | Boolean | internal | 28-29 | - | - |
| DetermineControlInformation | (Input: Text) | - | internal | 28-29 | - | - |
| AssistEditLotNo | () | - | public | 28-29 | - | - |
| AssistEditPackageNo | () | - | public | 28-29 | - | - |
| AssistEditSerialNo | () | - | public | 28-29 | - | - |
| SetRecordFiltersToFindInspectionFor | (ErrorIfMissingFilter: Boolean; RecordVariant: Variant; UseItem: Boolean; UseTracking: Boolean; UseDocument: Boolean) | - | public | 28-29 | - | - |
| GetMostRecentInspectionFor | (RecordVariant: Variant) | Boolean | internal | 28-29 | - | - |
| PrintCertificateOfAnalysis | () | - | internal | 28-29 | - | - |
| PrintNonConformance | () | - | internal | 28-29 | - | - |
| PrintGeneralPurposeInspection | () | - | internal | 28-29 | - | - |
| GetReferenceRecordId | () | Guid | internal | 28-29 | - | - |
| SetPreventAutoAssignment | (ShouldPrevent: Boolean) | - | internal | 28-29 | - | - |
| GetPreventAutoAssignment | () | Boolean | public | 28-29 | - | - |
| GetRelatedItem | (var Item: Record Item) | Boolean | public | 28-29 | - | - |
| GetItemAttributeValue | (ItemAttributeName: Text) | Text | public | 28-29 | - | - |
| RunModalRelatedTransfers | () | - | internal | 28-29 | - | - |
| GetFriendlyIdentifier | () | Text | public | 28-29 | - | - |
| GetStatusStyleExpression | () | Text | public | 28-29 | - | - |
| GetResultStyle | () | Text | internal | 28-29 | - | - |
| TakeNewMostRecentPicture | () | - | internal | 28-29 | - | - |
| ImportMostRecentPicture | () | - | internal | 28-29 | - | - |
| DeleteMostRecentPicture | () | - | internal | 28-29 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeSetRecordFiltersToFindInspectionFor | (var QltyInspectionHeader: Record "Qlty. Inspection Header"; ErrorIfMissingFilter: Boolean; RecordVariant: Variant; UseItem: Boolean; UseTracking: Boolean; var UseDocument: Boolean; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnAfterSetRecordFiltersToFindInspectionFor | (var QltyInspectionHeader: Record "Qlty. Inspection Header"; ErrorIfMissingFilter: Boolean; RecordVariant: Variant; UseItem: Boolean; UseTracking: Boolean; var UseDocument: Boolean) | 28-29 | - | - |
| Integration event | OnInspectionFinished | (var QltyInspectionHeader: Record "Qlty. Inspection Header") | 28-29 | - | - |
| Integration event | OnInspectionReopen | (var QltyInspectionHeader: Record "Qlty. Inspection Header") | 28-29 | - | - |
| Integration event | OnBeforeReopenInspection | (var QltyInspectionHeader: Record "Qlty. Inspection Header"; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnBeforeFinishInspection | (var QltyInspectionHeader: Record "Qlty. Inspection Header"; var IsHandled: Boolean) | 28-29 | - | - |
| Integration event | OnAfterFindLineUpdateResultFromLines | (var QltyInspectionHeader: Record "Qlty. Inspection Header"; var QltyInspectionLine: Record "Qlty. Inspection Line") | 28-29 | - | - |
| Integration event | OnBeforeFindLineUpdateResultFromLines | (var QltyInspectionHeader: Record "Qlty. Inspection Header"; var QltyInspectionLine: Record "Qlty. Inspection Line"; var IsHandled: Boolean) | 28-29 | - | - |

## Trigger events

| Name | Parameters | ElementName | Docs |
| --- | --- | --- | --- |
| OnBeforeInsertEvent | (var Rec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforeinsertevent-table-trigger/ |
| OnAfterInsertEvent | (var Rec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterinsertevent-table-trigger/ |
| OnBeforeModifyEvent | (var Rec: Record "Qlty. Inspection Header"; var xRec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforemodifyevent-table-trigger/ |
| OnAfterModifyEvent | (var Rec: Record "Qlty. Inspection Header"; var xRec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftermodifyevent-table-trigger/ |
| OnBeforeDeleteEvent | (var Rec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforedeleteevent-table-trigger/ |
| OnAfterDeleteEvent | (var Rec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterdeleteevent-table-trigger/ |
| OnBeforeRenameEvent | (var Rec: Record "Qlty. Inspection Header"; var xRec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforerenameevent-table-trigger/ |
| OnAfterRenameEvent | (var Rec: Record "Qlty. Inspection Header"; var xRec: Record "Qlty. Inspection Header"; RunTrigger: Boolean) | '' | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onafterrenameevent-table-trigger/ |
| OnBeforeValidateEvent | (var Rec: Record "Qlty. Inspection Header"; var xRec: Record "Qlty. Inspection Header"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onbeforevalidateevent-table-trigger/ |
| OnAfterValidateEvent | (var Rec: Record "Qlty. Inspection Header"; var xRec: Record "Qlty. Inspection Header"; CurrFieldNo: Integer) | per field, ElementName: field name | https://jonas-paprotka.de/docs/dev-itpro/developer/triggers-auto/events/table/devenv-onaftervalidateevent-table-trigger/ |

## 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.
