---
id: object/codeunit/1180
type: object
title: Codeunit 1180 "Data Privacy Mgmt"
summary: Codeunit 1180 "Data Privacy Mgmt" in Base Application (System.Privacy). 15 public procedures, 5 events. Present since at least BC23, still in BC30, changed in BC25.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "25"
  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: 169965795bec7dd02ac30cbb1af843469b4d207c6a1a3a4ad554faf6656658c2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/DataPrivacyMgmt.Codeunit.al
    title: src/Layers/W1/BaseApp/DataPrivacyMgmt.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: 1180
name: Data Privacy Mgmt
namespace: System.Privacy
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "25"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 38
  events: 5
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 5
  called_by: 0
  implements: 0
---

# Codeunit 1180 "Data Privacy Mgmt"

> Codeunit 1180 "Data Privacy Mgmt" in Base Application (System.Privacy). 15 public procedures, 5 events. Present since at least BC23, still in BC30, changed in BC25.

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

## Events published

- `OnCreateData(EntityTypeTableNo: Integer; EntityNo: Code[50]; var PackageCode: Code[20]; ActionType: Option "Export a data subject's data","Create a data privacy configuration package"; DataSensitivityOption: Option Sensitive,Personal,"Company Confidential",Normal,Unclassified)` (integration)
- `OnGetPackageFilterTableNoCaseElse(TableNo: Integer; var FieldValue: Text[250])` (integration)
- `OnAfterGetPackageCode(EntityTypeTableNo: Integer; EntityNo: Code[50]; ActionType: Option "Export a data subject's data","Create a data privacy configuration package"; var PackageCodeTemp: Code[20]; var PackageCodeKeep: Code[20])` (integration)
- `OnAfterSetPrivacyBlocked(EntityTypeTableNo: Integer; EntityNo: Code[50])` (integration)
- `OnAfterIsContactPersonTable(TableNo: Integer; var Result: Boolean)` (integration)
  - subscribers: [Codeunit 6450 "Serv. Integration Mgt."](../codeunit/6450.md) OnAfterIsContactPersonTable

## Procedures

- `CreateData(EntityTypeTableNo: Integer; EntityNo: Code[50]; var PackageCode: Code[20]; ActionType: Option "Export a data subject's data","Create a data privacy configuration package"; DataSensitivityOption: Option Sensitive,Personal,"Company Confidential",Normal,Unclassified)`
- `CreateRelatedData(var RecRef: RecordRef; EntityTypeTableNo: Integer; EntityNo: Code[50]; var PackageCode: Code[20]; ActionType: Option "Export a data subject's data","Create a data privacy configuration package"; DataSensitivityOption: Option Sensitive,Personal,"Company Confidential",Normal,Unclassified)`
- `GetPackageCode(EntityTypeTableNo: Integer; EntityNo: Code[50]; ActionType: Option "Export a data subject's data","Create a data privacy configuration package"): Code[20]`
- `DeletePackage(PackageCode: Code[20])`
- `CreatePackage(TableNo: Integer; EntityTypeTableNo: Integer; EntityNo: Code[50]; PackageCode: Code[20]; PackageName: Code[50]; DataSensitivityOption: Option Sensitive,Personal,"Company Confidential",Normal,Unclassified)`
- `GetPrivacyEntityKeyFieldAndTableNo(var EntityKeyField: Integer; var EntityTypeTableNo: Integer)`
- `CreateConfigPackage(var ConfigPackage: Record "Config. Package"; PackageCode: Code[20]; PackageName: Text[50])`
- `CreatePackageTable(PackageCode: Code[20]; TableId: Integer)`
- `InsertPackageTable(PackageCode: Code[20]; TableId: Integer; FireInsertTrigger: Boolean)`
- `CreatePackageField(ConfigPackageCode: Code[20]; TableId: Integer; FieldId: Integer; ProcessingOrder: Integer): Boolean`
- `CreatePackageFilter(ConfigPackageCode: Code[20]; TableId: Integer; EntityKeyField: Integer; FieldValue: Text[250]): Boolean`
- `CreateDataForChangeLogEntries(PackageCode: Code[20]; EntityNo: Code[50]; EntityTableID: Integer)`
- `SetPrivacyBlocked(EntityTypeTableNo: Integer; EntityNo: Code[50])`
- `FilterDataSensitivityByDataSensitivityOption(var DataSensitivity: Record "Data Sensitivity"; TableID: Integer; DataSensitivityOption: Option Sensitive,Personal,"Company Confidential",Normal,Unclassified)`
- `RecRefGet(var RecRef: RecordRef; PrimaryKeyFieldNo: Integer; Filter: Text)`

Plus 18 local procedures.

## Triggers

OnRun

## 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) (6 calls: `CreateDataForRelatedTables → Close`, `CreateDataForRelatedTables → Init`, `CreateRelatedDataFields → Update`, …)
- [Codeunit 1750 "Data Classification Mgt."](../codeunit/1750.md) (3 calls: `CreateRelatedDataFields → IsSupportedTable`, `GetPrivacyEntityKeyFieldAndTableNo → RaiseOnGetDataPrivacyEntities`, `GetRecRefForPrivacyMasterTable → RaiseOnGetDataPrivacyEntities`)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (2 calls: `CreatePackageFilter → GetField`, `IsValidField → GetField`)
- [Codeunit 43 "Language"](../codeunit/43.md) (1 call: `CreateConfigPackage → GetDefaultApplicationLanguageId`)
- [Codeunit 9015 "Application System Constants"](../codeunit/9015.md) (1 call: `CreateConfigPackage → ApplicationVersion`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC25

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: "Data Privacy Mgmt")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
