community postAdministration & Setupcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central: How to restrict certain tables from importing data through Configuration Package

Configuration Packages can import data into Business Central, but posted tables, entry tables, and system tables are blocked by default. To restrict additional tables from being imported, you can use customization with the OnAfterIsSystemTable event in a codeunit to mark unwanted tables as system tables and prevent users from importing them.

post Dynamics 365 Lab

Yun Zhu · 2025-07-18 · 454 words · about 2 min

"For posted tables and entry tables, we cannot insert, modify, or delete them through the Configuration Package."

Key points

  • Posted and entry tables like G/L Entry cannot be inserted, modified, or deleted through Configuration Package
  • System tables cannot be imported or exported through Configuration Package
  • Security Filters alone cannot prevent access to system tables with InherentPermissions Property set
  • The OnAfterIsSystemTable event allows custom marking of tables as system tables to block import access
  • You can create a configuration table to manage prohibited tables or add user-level controls for granular restriction

Quotes

  • “For posted tables and entry tables, we cannot insert, modify, or delete them through the Configuration Package.” (Explains the built-in restriction that protects transactional data from accidental modification during import)
  • “So we can only do it through customization, there are many ways. I will mainly introduce one that uses a standard event, OnAfterIsSystemTable.” (Identifies the recommended approach for extending table restrictions beyond built-in limitations)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

Not found in BC28-30: codeunit “ConfigPackageHandler”.

No source states these links: they share an object, a model read them, or a person found the same subject.

Heads up

  • warning: “if the user does not have some experience using Configuration Package, the existing data may be accidentally overwritten or deleted”

Context

  • Features: Configuration Packages, data import/export, table security, event subscribers, permission control, RapidStart

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.