Control your data
Control your data covers how administrators audit, classify, protect, retain, archive and delete data in Business Central. It answers questions about change logs, data sensitivity, encryption, retention policies, privacy requests, storage cleanup, and database locks.
- 8Learn pages
- 4videos
- 18AL objects
Path: Development and administration > Administration tasks in Business Central > Control your data · tier official · system administration · narrative reviewed (checked by Opus)
Overview
This section groups the administration tasks that govern data in Business Central: who changed it, how sensitive it is, how long it is kept, and how it is removed or protected. There are no subtopics, so all guidance sits in eight pages.
For tracking and governance, start with Auditing changes (change log, field monitoring, data analysis) and Classify Data Sensitivity (Sensitive, Personal, Company Confidential, Normal, plus field masking). For lifecycle and storage, use retention policies, the batch jobs for deleting documents and compressing data, and the Data Archive extension, which keeps copies of entries that date compression deletes.
For compliance and operations, see Responding to requests about users’ personal data (Data Privacy Utility), Manage Data Encryption (on-premises key management) and View Database Locks (diagnosing lock timeouts).
Key points
- Auditing changes uses change log, field monitoring, data analysis, and activity logs to show who changed what and when.
- Data classification assigns Sensitive, Personal, Company Confidential, or Normal through the DataClassification property, with bulk classification and field masking via MaskType.
- Retention policies delete outdated data in log entry and archived record tables, with filter criteria and a mandatory retention period. They run through the job queue automatically or can be applied manually.
- Batch jobs delete obsolete documents (such as sales orders and invoices) and compress historic entries by date or status to manage database storage.
- The Data Archive extension preserves entries removed by date compression and exports them to Excel or CSV.
- Data subject requests are handled with the Data Privacy Utility: export, deletion, and modification of personal data, including the Privacy Blocked checkbox.
- Application-level encryption for on-premises environments is managed on the Data Encryption Management page: enable, disable, import, change, and export keys with password protection.
- The Database Locks page shows granted and waiting lock requests, with user, session, and executing AL code, to diagnose lock timeouts.
Learn pages
- Auditing changes: Track changes to data in selected tables and monitor user activities with change logs and activity logs in Business Central.
- Classify Data Sensitivity in Business Central: Classify personal and sensitive data in Business Central, manage field sensitivity levels, and understand the limits of masking values in the user interface.
- In the observatory: Page 2610 “Feature Management”
- Clean up data with retention policies: You can specify how often you want to delete certain types of data.
- In the observatory: Codeunit 3905 “Reten. Pol. Allowed Tables”
- Manage Data Encryption in Business Central: Manage application data encryption keys in Business Central on-premises, and understand how this protection differs from database encryption at rest.
- In the observatory: Page 9905 “Data Encryption Management”
- Manage storage by deleting documents or compressing data: Learn how to deal with accumulating historic documents (and reduce the amount of data stored in a database) by deleting or compressing them.
- In the observatory: Codeunit 9040 “Date Compression”
- Responding to requests about users’ personal data: This article explains how to respond to requests about personal data.
- In the observatory: Page 459 “Sales & Receivables Setup”, Page 460 “Purchases & Payables Setup”, Table 5050 “Contact”
- The Data Archive Extension: Preserve records before date compression deletes them. Learn how to view data archives, export them to Excel or CSV, and manage archived data.
- In the observatory: Page 2500 “Extension Management”
- View Database Locks: View a snapshot of database locks in Business Central to identify affected tables, sessions, users, and available details about the executing AL code.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #12152 [MCP] Clear environment description after environment copy (code change): “Clear environment description after environment copy”
- #12429 Skip enabling incomplete existing retention policies on install/upgrade (code change): “Skip enabling incomplete retention policies during install and upgrade”
- #13201 [main] Bug 592028 Retention policy fails: Bin Mandatory must be equal to ‘No’ in Location. Current value is ‘Yes’. (code change): “retention policy deletion. Prevents CheckLocation validation error”
- Record Deletion Tool for Business Central in AppSource (community post): “Allows cleanup of test transactions in a company.”
- BC Friday Tips #79 Change Log Deletion on One Field (community post): “Enable deletion logging on only one field in the primary key”
- Dynamics 365 Business Central: How to easily check who created an environment, company and record and when (community post): “Every table has four system audit fields created and modified, at and by”
- Business Central 2026 release wave 1 (BC28): Storing Document Attachments outside the database (No customization) – See benefits of external storage support for document attachments (community post): “storing attachments in SharePoint, Azure, or SFTP instead of the database”
- Business Central 2026 release wave 1 (BC28): Show avatars for record creators and modifiers in lists (Created / Updated by) – Display data audit fields without customization (community post): “visual avatars in list pages to display which user or agent created or modified records”
- Dynamics 365 Business Central: How to import Change Log Setup (Table/Field) using Configuration Packages (community post): “The change log records direct user changes to data in the tables and fields”
- Use Retention Policies to Avoid Unnecessary Database Growth (video): “Use Retention Policies to Avoid Unnecessary Database Growth; automated deletion; data governance”
- What’s New: Customer-Managed Encryption Key (2025 release wave 1) (video): “Customer-Managed Encryption Key; data governance; privacy; security”
- What’s New: Customer-Managed Encryption Key & Lockbox (2024 release wave 2) (video): “customer-managed encryption key; lockbox; security; data encryption; enterprise policy”
- What’s New: Auditing In Purview (2024 release wave 2) (video): “Auditing Business Central events in Purview; Environment Administration event auditing”
Business Central pages and reports
The pages, reports and queries this hub’s Learn pages name (ms.search.form, API reference), joined to the code by exact object id (data/index/docs-objects.json); a page shows the table it runs on.
- Page 107 “Date Compr. Registers” · on Table 87 “Date Compr. Register”
- Page 592 “Change Log Setup” · on Table 402 “Change Log Setup”
- Page 593 “Change Log Setup (Table) List”
- Page 594 “Change Log Setup (Field) List”
- Page 595 “Change Log Entries” · on Table 405 “Change Log Entry”
- Page 630 “Data Archive List” · on Table 600 “Data Archive”
- Page 710 “Activity Log” · on Table 710 “Activity Log”
- Page 1366 “Field Monitoring Setup” · on Table 1366 “Field Monitoring Setup”
- Page 1367 “Monitored Field Log Entries” · on Table 405 “Change Log Entry”
- Page 1368 “Monitor Field Setup Wizard” · captioned “Field Monitoring Assisted Setup Guide”
- Page 1369 “Monitored Fields Worksheet” · on Table 404 “Change Log Setup (Field)”
- Page 1751 “Data Classification Worksheet”
- Page 1752 “Data Classification Wizard” · captioned “Data Classification Assisted Setup Guide” · on Table 1180 “Data Privacy Entities”
- Page 3901 “Retention Policy Setup Card” · captioned “Retention Policy” · on Table 3901 “Retention Policy Setup”
- Page 3903 “Retention Policy Setup List” · captioned “Retention Policies” · on Table 3901 “Retention Policy Setup”
- Page 9035 “Data Administration”
- Page 9040 “Data Administration Guide”
- Page 9511 “Database Locks”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 8 Learn pages
- learnAuditing changes2026-06-17
- learnClassify Data Sensitivity in Business Central2026-11-12
- learnClean up data with retention policies2026-03-02
- learnManage Data Encryption in Business Central2026-11-12
- learnManage storage by deleting documents or compressing data2026-09-03
- learnResponding to requests about users' personal data2026-10-22
- learnThe Data Archive Extension2026-11-10
- learnView Database Locks2026-11-10