---
id: object/codeunit/8611
type: object
title: Codeunit 8611 "Config. Package Management"
summary: Codeunit 8611 "Config. Package Management" in Base Application (System.IO). 58 public procedures, 29 events, 1 event subscribers. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  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: c116c241694dc4a14f1567cff44473acaaabc1aa401bcca609bd75248ad6a656
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/RapidStart/ConfigPackageManagement.Codeunit.al
    title: src/Layers/W1/BaseApp/System/RapidStart/ConfigPackageManagement.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 8611
name: Config. Package Management
namespace: System.IO
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 144
  events: 29
  subscribers: 1
relations:
  out: 1
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 12
  called_by: 21
  implements: 0
---

# Codeunit 8611 "Config. Package Management"

> Codeunit 8611 "Config. Package Management" in Base Application (System.IO). 58 public procedures, 29 events, 1 event subscribers. Present since at least BC23, still in BC30.

Base Application · System.IO · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/RapidStart/ConfigPackageManagement.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| TableNo | Config. Package Record |

## Events published

- `OnAfterApplyPackageRecords(var ConfigPackageRecord: Record "Config. Package Record"; PackageCode: Code[20]; TableNo: Integer)` (integration)
- `OnAfterGetKeyFieldsOrder(RecordRef: RecordRef; PackageCode: Code[20]; var TempConfigPackageField: Record "Config. Package Field" temporary; var ValidationFieldID: Integer)` (integration)
- `OnAfterValidatePackageDataRelation(ConfigPackageData: Record "Config. Package Data"; ConfigPackageField: Record "Config. Package Field"; var ConfigPackageTable: Record "Config. Package Table"; var RelationTableNo: Integer; var RelationFieldNo: Integer; var DataInPackageData: Boolean)` (integration)
- `OnBeforeGetFieldRelationTableNo(ConfigPackageTable: Record "Config. Package Table"; var Field: Record "Field"; var TempConfigPackageTable: Record "Config. Package Table" temporary; var IsHandled: Boolean)` (integration)
- `OnBeforeSetFieldFilter(var Field: Record "Field"; TableID: Integer; FieldID: Integer; var IsHandled: Boolean)` (integration)
- `OnBeforeApplyPackageRecords(var ConfigPackageRecord: Record "Config. Package Record"; var PackageCode: Code[20]; var TableNo: Integer; var ApplyMode: Option; var ConfigPackageManagement: Codeunit "Config. Package Management"; var TempAppliedConfigPackageRecord: Record "Config. Package Record" temporary; var ProcessingRuleIsSet: Boolean; var TempConfigRecordForProcessing: Record "Config. Record For Processing" temporary; var ConfigTableProcessingRule: Record "Config. Table Processing Rule"; var RecordsInsertedCount: Integer; var RecordsModifiedCount: Integer; var HideDialog: Boolean; var IsHandled: Boolean)` (integration)
- `OnBeforeModifyRecordDataFields(var RecRef: RecordRef; ConfigPackageRecord: Record "Config. Package Record"; DoModify: Boolean; DelayedInsert: Boolean)` (integration)
- `OnBeforeSetupProcessingOrder(var ConfigPackageTable: Record "Config. Package Table"; var IsHandled: Boolean)` (integration)
- `OnBeforeValidateException(TableID: Integer; FieldID: Integer; var Result: Boolean; var IsHandled: Boolean)` (integration)
- `OnModifyRecordDataFieldOnBeforeEvaluateTextToFieldRef(var ConfigPackageField: Record "Config. Package Field"; var ConfigPackageData: Record "Config. Package Data"; var ConfigPackageTable: Record "Config. Package Table"; DelayedInsert: Boolean; ApplyMode: Option; FieldRef: FieldRef; var SkipEvaluate: Boolean)` (integration)
- `OnModifyRecordDataFieldOnBeforeUpdateValueUsingMapping(var ConfigPackageData: Record "Config. Package Data"; var ConfigPackageField: Record "Config. Package Field"; ConfigPackageRecord: Record "Config. Package Record"; var RecordRef: RecordRef; var IsHandled: Boolean)` (integration)
- `OnModifyRecordDataFieldsOnBeforeFindConfigPackageField(var ConfigPackageField: Record "Config. Package Field"; ConfigPackageRecord: Record "Config. Package Record"; RecRef: RecordRef; DoModify: Boolean; DelayedInsert: Boolean)` (integration)
- `OnPreProcessPackage(var ConfigRecordForProcessing: Record "Config. Record For Processing"; var Subscriber: Variant)` (integration)
- `OnPostProcessPackage()` (integration)
- `OnModifyRecordDataFieldsOnAfterRecRefModify(var RecRef: RecordRef)` (integration)
- `OnModifyRecordDataFieldsOnAfterRecRefUpdated(var RecRef: RecordRef)` (integration)
- `OnInsertPackageFieldOnAfterCalcSkipRelationTableID(var ConfigPackageField: Record "Config. Package Field"; var SkipRelationTableID: Boolean)` (integration)
- `OnInsertPackageFieldOnBeforeInsert(var ConfigPackageField: Record "Config. Package Field")` (integration)
- `OnInsertPackageFieldOnBeforeValidateFieldID(var ConfigPackageField: Record "Config. Package Field")` (integration)
- `OnInsertRecordOnBeforeInsertRecRef(var RecRef: RecordRef; ConfigPackageRecord: Record "Config. Package Record"; var IsHandled: Boolean)` (integration)
- `OnModifyRecordDataFieldsOnBeforeRecRefInsert(var RecRef: RecordRef; ConfigPackageTable: Record "Config. Package Table"; var IsHandled: Boolean; ConfigPackageRecord: Record "Config. Package Record")` (integration)
- `OnModifyRecordDataFieldsOnBeforeRecRefModify(var RecRef: RecordRef; ConfigPackageTable: Record "Config. Package Table"; var RecordsModifiedCount: Integer; var IsHandled: Boolean; ConfigPackageRecord: Record "Config. Package Record")` (integration)
- `OnModifyRecordDataFieldOnAfterGetCachedConfigPackageField(var RecordRef: RecordRef; var FieldRef: FieldRef; var ConfigPackageField: Record "Config. Package Field"; var ConfigPackageData: Record "Config. Package Data"; var IsHandled: Boolean)` (integration)
- `OnApplyPackageOnBeforeCleanPackageErrors(var ConfigPackage: Record "Config. Package"; var IsHandled: Boolean)` (integration)
- `OnApplyPackageTablesOnFilterConfigPackageRecord(var ConfigPackage: Record "Config. Package"; var ConfigPackageRecord: Record "Config. Package Record")` (integration)
- `OnInsertPackageRecordOnAfterDelayedInsert(var RecordRef: RecordRef; ConfigPackageRecord: Record "Config. Package Record"; ConfigPackageTable: Record "Config. Package Table"; var ApplyMode: Option; DelayedInsert: Boolean; var IsHandled: Boolean)` (integration)
- `OnInsertPrimaryKeyFieldsOnBeforeUpdateValueUsingMapping(var RecordRef: RecordRef; ConfigPackageData: Record "Config. Package Data"; var ConfigPackageField: Record "Config. Package Field"; ConfigPackageRecord: Record "Config. Package Record"; var IsHandled: Boolean)` (integration)
- `OnApplyPackageOnAfterCommit(var ConfigPackageTable: Record "Config. Package Table")` (integration)
- `OnAddConfigTablesOnBeforeSetSkipTableTriggers(var ConfigPackageTable: Record "Config. Package Table"; var PackageCode: Code[20])` (integration)

## Event subscriptions

- SendTelemetryOnDeleteConfigPackage subscribes to Table "Config. Package" OnBeforeDeleteEvent

## Procedures

- `InsertPackage(var ConfigPackage: Record "Config. Package"; PackageCode: Code[20]; PackageName: Text[50]; ExcludeConfigTables: Boolean)`
- `InsertPackageTable(var ConfigPackageTable: Record "Config. Package Table"; PackageCode: Code[20]; TableID: Integer)`
- `InsertPackageTableWithoutValidation(var ConfigPackageTable: Record "Config. Package Table"; PackageCode: Code[20]; TableID: Integer)`
- `InsertPackageField(var ConfigPackageField: Record "Config. Package Field"; PackageCode: Code[20]; TableID: Integer; FieldID: Integer; FieldName: Text[30]; FieldCaption: Text[250]; SetInclude: Boolean; SetValidate: Boolean; SetLocalize: Boolean; SetDimension: Boolean)`
- `InsertPackageFilter(var ConfigPackageFilter: Record "Config. Package Filter"; PackageCode: Code[20]; TableID: Integer; ProcessingRuleNo: Integer; FieldID: Integer; FieldFilter: Text[250])`
- `InsertPackageRecord(ConfigPackageRecord: Record "Config. Package Record")`
- `InsertPackageData(var ConfigPackageData: Record "Config. Package Data"; PackageCode: Code[20]; TableID: Integer; No: Integer; FieldID: Integer; Value: Text[2048]; Invalid: Boolean)`
- `InsertProcessingRule(var ConfigTableProcessingRule: Record "Config. Table Processing Rule"; ConfigPackageTable: Record "Config. Package Table"; RuleNo: Integer; NewAction: Option)`
- `InsertProcessingRuleCustom(var ConfigTableProcessingRule: Record "Config. Table Processing Rule"; ConfigPackageTable: Record "Config. Package Table"; RuleNo: Integer; CodeunitID: Integer)`
- `SetSkipTableTriggers(var ConfigPackageTable: Record "Config. Package Table"; PackageCode: Code[20]; TableID: Integer; Skip: Boolean)`
- `GetNumberOfRecordsInserted(): Integer`
- `GetNumberOfRecordsModified(): Integer`
- `InitPackageRecord(var ConfigPackageRecord: Record "Config. Package Record"; PackageCode: Code[20]; TableID: Integer)`
- `RemoveRecordsWithObsoleteTableID(TableID: Integer; TableIDFieldNo: Integer)`
- `ValidatePackageRelations(var ConfigPackageTable: Record "Config. Package Table"; var TempConfigPackageTable: Record "Config. Package Table" temporary; SetupProcessingOrderForTables: Boolean)`
- `ValidateFieldRelationInRecord(ConfigPackageField: Record "Config. Package Field"; var ValidatedConfigPackageTable: Record "Config. Package Table"; ConfigPackageRecord: Record "Config. Package Record"; RecRef: RecordRef): Boolean`
- `ValidateSinglePackageDataRelation(var ConfigPackageData: Record "Config. Package Data"): Boolean`
- `ValidateException(TableID: Integer; FieldID: Integer): Boolean`
- `ShowWarningOnImportingBigConfPackageFromExcel(FileSize: Integer): Action` (internal)
- `ShowWarningOnImportingBigConfPackageFromRapidStart(FileSize: Integer): Action` (internal)
- `ShowWarningOnApplyingBigConfPackage(RecordCount: Integer): Action` (internal)
- `SentPackageImportedNotification(ConfigPackageCode: Code[20])` (internal)
- `ApplyPackageFromNotification(var PackageImportedNotification: Notification)` (internal)
- `DisableNotification(var PackageImportedNotification: Notification)` (internal)
- `ShowRapidStartNotification()` (internal)
- `LearnMoreNotificationAction(var Notification: Notification)` (internal)
- `IsDimSetIDField(TableId: Integer; FieldId: Integer): Boolean`
- `ValidateFieldRelationAgainstPackageData(ConfigPackageData: Record "Config. Package Data"; var ValidatedConfigPackageTable: Record "Config. Package Table"; RelationTableNo: Integer; RelationFieldNo: Integer): Boolean`
- `RecordError(var ConfigPackageRecord: Record "Config. Package Record"; ValidationFieldID: Integer; ErrorText: Text[250])`
- `FieldError(var ConfigPackageData: Record "Config. Package Data"; ErrorText: Text[250]; ErrorType: Option ,TableRelation)`
- `CleanRecordError(var ConfigPackageRecord: Record "Config. Package Record")`
- `CleanFieldError(var ConfigPackageData: Record "Config. Package Data")`
- `CleanPackageErrors(PackageCode: Code[20]; TableFilter: Text)`
- `GetValidationFieldID(): Integer`
- `ApplyConfigLines(var ConfigLine: Record "Config. Line")`
- `ApplyPackage(ConfigPackage: Record "Config. Package"; var ConfigPackageTable: Record "Config. Package Table"; SetupProcessingOrderForTables: Boolean): Integer`
- `ApplySelectedPackageRecords(var ConfigPackageRecord: Record "Config. Package Record"; PackageCode: Code[20]; TableNo: Integer)`
- `ApplyConfigTables(ConfigPackage: Record "Config. Package")`
- `SetApplyMode(NewApplyMode: Option ,PrimaryKey,NonKeyFields)`
- `SetFieldFilter(var Field: Record "Field"; TableID: Integer; FieldID: Integer)`
- `SelectAllPackageFields(var ConfigPackageField: Record "Config. Package Field"; SetInclude: Boolean)`
- `SetupProcessingOrder(var ConfigPackageTable: Record "Config. Package Table")`
- `GetDimSetIDForRecord(ConfigPackageRecord: Record "Config. Package Record"): Integer`
- `UpdateDefaultDimValues(ConfigPackageRecord: Record "Config. Package Record"; MasterNo: Code[20])`
- `SetHideDialog(NewHideDialog: Boolean)`
- `AddConfigTables(PackageCode: Code[20])`
- `AssignPackage(var ConfigLine: Record "Config. Line"; PackageCode: Code[20])`
- `CheckConfigLinesToAssign(var ConfigLine: Record "Config. Line")`
- `GetRelatedTables(var ConfigPackageTable: Record "Config. Package Table")`
- `GetFieldsOrder(RecRef: RecordRef; PackageCode: Code[20]; var TempConfigPackageField: Record "Config. Package Field" temporary)`
- `UpdateConfigLinePackageData(ConfigPackageCode: Code[20])`
- `HandlePackageDataDimSetIDForRecord(ConfigPackageRecord: Record "Config. Package Record")`
- `ShowFieldMapping(ConfigPackageField: Record "Config. Package Field")`
- `IsBLOBField(TableId: Integer; FieldId: Integer): Boolean`
- `IsMediaSetField(TableId: Integer; FieldId: Integer): Boolean`
- `IsMediaField(TableId: Integer; FieldId: Integer): Boolean`
- `IsFieldMultiRelation(TableID: Integer; FieldID: Integer): Boolean`
- `ValidateFieldRefRelationAgainstCompanyData(FieldRef: FieldRef; var ConfigPackageFieldOrder: Record "Config. Package Field"): Text[250]`

Plus 56 local procedures.

## Triggers

OnRun

## Relations

- runs on [Table 8614 "Config. Package Record"](../table/8614.md)

## 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 8615 "Config. Progress Bar"](../codeunit/8615.md) (12 calls: `ApplyPackageRecords → Close`, `ApplyPackageRecords → Init`, `ApplyPackageRecords → Update`, …)
- [Codeunit 8617 "Config. Validate Management"](../codeunit/8617.md) (8 calls: `GetRelationInfo → GetRelationInfoByIDs`, `InsertPackageField → GetRelationTableID`, `InsertPackageField → IsKeyField`, …)
- [Codeunit 8616 "Config. Management"](../codeunit/8616.md) (5 calls: `ApplyConfigLines → MakeTableFilter`, `ApplyPackage → IsDimSetIDTable`, `GetDimSetIDForRecord → DimensionFieldID`, …)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (4 calls: `GetCachedConfigPackageField → GetField`, `IsBLOBField → GetField`, `IsMediaField → GetField`, …)
- [Codeunit 457 "Environment Information"](../codeunit/457.md) (3 calls: `ShowRapidStartNotification → IsSaaS`, `ShowWarningOnApplyingBigConfPackage → IsSaaS`, `ShowWarningOnImportingBigConfPackage → IsSaaS`)
- [Codeunit 408 "DimensionManagement"](../codeunit/408.md) (2 calls: `GetDimSetID → GetDimensionSetID`, `GetDimSetIDForRecord → GetDimensionSetID`)
- [Codeunit 8613 "Config. Try Validate"](../codeunit/8613.md) (2 calls: `ValidateFieldRefRelationAgainstCompanyDataAndPackage → (object)`, `ValidateFieldRefRelationAgainstCompanyDataAndPackage → SetValidateParameters`)
- [Codeunit 8622 "Config. Insert With Validation"](../codeunit/8622.md) (2 calls: `InsertRecord → (object)`, `InsertRecord → SetInsertParameters`)
- [Codeunit 8703 "Feature Telemetry"](../codeunit/8703.md) (2 calls: `ApplyPackage → LogUptake`, `ApplyPackage → LogUsage`)
- [Codeunit 8610 "Questionnaire Management"](../codeunit/8610.md) (1 call: `ModifyRecordDataFields → ModifyConfigQuestionAnswer`)
- [Codeunit 8612 "Config. Template Management"](../codeunit/8612.md) (1 call: `ApplyTemplate → UpdateRecord`)
- [Codeunit 8623 "Dimensions Notifications"](../codeunit/8623.md) (1 call: `ApplyPackage → ConfirmPackageHasDimensionsWarning`)

## Called by

- [Codeunit 8614 "Config. XML Exchange"](../codeunit/8614.md) (19 calls: `AddDimPackageFields → InsertPackageField`, `ExportConfigPackageMediaSetToXML → InsertPackageFilter`, `ExportConfigPackageMediaSetToXML → InsertPackageTable`, …)
- [Codeunit 1806 "Excel Data Migrator"](../codeunit/1806.md) (16 calls: `ApplySelectedData → ApplyPackage`, `ApplySelectedData → CleanPackageErrors`, `ApplySelectedData → SetHideDialog`, …)
- [Table 8613 "Config. Package Table"](../table/8613.md) (7 calls: `InitDimensionFields → InsertPackageField`, `InitDimensionFields → InsertPackageTable`, `InitPackageFields → InsertPackageField`, …)
- [Page 8626 "Config. Package Records"](../page/8626.md) (5 calls: `CleanSelectionErrors → CleanRecordError`, `OnAfterGetRecord → IsBLOBField`, `ValidatePackageData → CleanFieldError`, …)
- [Codeunit 18 "Financial Report Mgt."](../codeunit/18.md) (4 calls: `AddFinancialReportToConfigPackage → InsertPackage`, `AddFinancialReportToConfigPackage → InsertPackageFilter`, `AddFinancialReportToConfigPackage → InsertPackageTable`, …)
- [Codeunit 8610 "Questionnaire Management"](../codeunit/8610.md) (4 calls: `ModifyRecordWithOtherFields → GetFieldsOrder`, `ModifyRecordWithOtherFields → ValidateFieldRefRelationAgainstCompanyData`, `UpdateQuestions → SetFieldFilter`, …)
- [Table 333 "Column Layout Name"](../table/333.md) (4 calls: `AddColumnDefinitionToPackage → InsertPackage`, `AddColumnDefinitionToPackage → InsertPackageFilter`, `AddColumnDefinitionToPackage → InsertPackageTable`, …)
- [Page 8625 "Config. Package Subform"](../page/8625.md) (3 calls: `CheckFieldsMultiRelations → IsFieldMultiRelation`, `CheckFieldsMultiRelations → SetFieldFilter`, `OnOpenPage → RemoveRecordsWithObsoleteTableID`)
- [Page 8632 "Config. Worksheet"](../page/8632.md) (3 calls: `AssignPackagePrompt → AssignPackage`, `AssignPackagePrompt → CheckConfigLinesToAssign`, `OnOpenPage → RemoveRecordsWithObsoleteTableID`)
- [Table 8616 "Config. Package Field"](../table/8616.md) (3 calls: `UpdateFieldErrors → CleanFieldError`, `UpdateFieldErrors → FieldError`, `UpdateFieldErrors → ValidateFieldRelationInRecord`)
- [Codeunit 5433 "Automation - Apply RSPackage"](../codeunit/5433.md) (2 calls: `OnRun → ApplyPackage`, `OnRun → SetHideDialog`)
- [Codeunit 8616 "Config. Management"](../codeunit/8616.md) (2 calls: `CheckDimTables → SetFieldFilter`, `GetConfigTables → SetFieldFilter`)
- [Codeunit 8621 "Config. Validate Package"](../codeunit/8621.md) (2 calls: `OnRun → SetHideDialog`, `OnRun → ValidatePackageRelations`)
- [Table 8627 "Config. Setup"](../table/8627.md) (2 calls: `ApplyPackages → ApplyPackage`, `ApplyPackages → SetHideDialog`)
- [Codeunit 8618 "Config. Excel Exchange"](../codeunit/8618.md) (1 call: `ImportExcelFromPackage → ShowWarningOnImportingBigConfPackageFromExcel`)
- [Page 8615 "Config. Packages"](../page/8615.md) (1 call: `OnOpenPage → ShowRapidStartNotification`)
- [Page 8624 "Config. Package Fields"](../page/8624.md) (1 call: `OnAfterGetCurrRecord → IsFieldMultiRelation`)
- [Table 84 "Acc. Schedule Name"](../table/84.md) (1 call: `ApplyPackage → ApplyPackage`)
- [Table 8612 "Config. Question"](../table/8612.md) (1 call: `FieldLookup → SetFieldFilter`)
- [Table 8614 "Config. Package Record"](../table/8614.md) (1 call: `OnDelete → CleanRecordError`)
- [Table 8622 "Config. Line"](../table/8622.md) (1 call: `GetRelatedTables → SetFieldFilter`)

## Across versions

- Present in: BC23-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: "Config. Package Management")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
