Register custom integrations with Codeunit Privacy Notice
The current extension point is Codeunit "Privacy Notice". Extensions can subscribe to its OnRegisterPrivacyNotices event and add a dedicated notice ID, integration name, and link to the temporary Privacy Notice record.
- microsoftlayer
- privacydomain
- 1example
- 2pull requests
Rule on GitHub · microsoft layer · privacy · BC all · tier official · derived
Description
The current extension point is Codeunit "Privacy Notice". Extensions can subscribe to its OnRegisterPrivacyNotices event and add a dedicated notice ID, integration name, and link to the temporary Privacy Notice record. For explicit creation outside the default-registration flow, the same codeunit exposes CreatePrivacyNotice. Codeunit "Privacy Notice Registrations" contains IDs for built-in integrations and is not the registration API for a custom service.
Best Practice
Choose a stable ID owned by the extension. Register it through OnRegisterPrivacyNotices, or call PrivacyNotice.CreatePrivacyNotice during an intentional setup or upgrade path. Use that same ID for consent checks described in privacy-notice-consent-for-external-data-transfer.md.
See sample: register-integration-in-privacy-notice-registrations.good.al.
Anti Pattern
Reusing the Exchange or another built-in notice ID for a custom integration, subscribing to Privacy Notice Registrations, or calling the nonexistent CreatePrivacyNoticeForIntegration method. These shapes attach consent to the wrong service or do not compile.
Examples
Names
- codeunit 1563 “Privacy Notice” (names this object)
- codeunit 1357 “Privacy Notice Registrations” (names this object)
Changed by
- #174 Make BCQuality documentation easier for partners to get started, 2026-09-09
- #92 Correct security and privacy knowledge guidance, 2026-07-14
From microsoft/BCQuality at a4593a1, MIT License, Copyright (c) 2026 Microsoft Corporation (license).