---
title: "Codeunit 1180 Data Privacy Mgmt"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/1180-data-privacy-mgmt/
type: codeunit
id: 1180
name: "Data Privacy Mgmt"
app: "Base Application"
namespace: System.Privacy
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/1180-data-privacy-mgmt/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 1180 Data Privacy Mgmt

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/1180-data-privacy-mgmt/

| | |
| --- | --- |
| App | Base Application |
| Namespace | System.Privacy |
| Versions | 17-28 |
| Source file | DataPrivacyMgmt.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| CreateData | (Integer, Code[50], var Code[20], Option, Option) | - | public | 17-28 | - | - |
| CreateRelatedData | (var RecordRef, Integer, Code[50], var Code[20], Option, Option) | - | public | 17-28 | - | - |
| GetPackageCode | (Integer, Code[50], Option) | Code[20] | public | 17-28 | - | - |
| DeletePackage | (Code[20]) | - | public | 17-28 | - | - |
| CreatePackage | (Integer, Integer, Code[50], Code[20], Code[50], Option) | - | public | 17-28 | - | - |
| GetPrivacyEntityKeyFieldAndTableNo | (var Integer, var Integer) | - | public | 17-28 | - | - |
| CreateConfigPackage | (var Record Config. Package, Code[20], Text[50]) | - | public | 17-28 | - | - |
| CreatePackageTable | (Code[20], Integer) | - | public | 17-28 | - | - |
| InsertPackageTable | (Code[20], Integer, Boolean) | - | public | 17-28 | - | - |
| CreatePackageField | (Code[20], Integer, Integer, Integer) | Boolean | public | 17-28 | - | - |
| CreatePackageFilter | (Code[20], Integer, Integer, Text[250]) | Boolean | public | 17-28 | - | - |
| CreateDataForChangeLogEntries | (Code[20], Code[50], Integer) | - | public | 17-28 | - | - |
| SetPrivacyBlocked | (Integer, Code[50]) | - | public | 17-28 | - | - |
| FilterDataSensitivityByDataSensitivityOption | (var Record Data Sensitivity, Integer, Option) | - | public | 17-28 | - | - |
| RecRefGet | (var RecordRef, Integer, Text) | - | public | 17-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnCreateData | (Integer, Code[50], var Code[20], Option, Option) | 17-28 | - | - |
| Integration event | OnAfterGetPackageCode | (Integer, Code[50], Option, var Code[20], var Code[20]) | 17-28 | - | - |
| Integration event | OnAfterSetPrivacyBlocked | (Integer, Code[50]) | 17-28 | - | - |
| Integration event | OnGetPackageFilterTableNoCaseElse | (Integer, var Text[250]) | 19-28 | - | - |
| Integration event | OnAfterIsContactPersonTable | (Integer, var Boolean) | 25-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
