community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Business Central 2025 wave 2 (BC27): New values (AsReadOnly & AsReadWrite) for the AllowInCustomizations property

BC27 introduces new values (AsReadOnly, AsReadWrite) for the AllowInCustomizations property to give AL developers finer control over how table fields can be used in page customizations. This property can now be set at table, table extension, and field levels, with corresponding analyzer rules to support field classification.

post Dynamics 365 Lab

Yun Zhu · 2025-09-10 · 615 words · about 3 min

"AsReadOnly - allows use in page customizations, but only as read-only. AsReadWrite - allows fields to be made editable in page customizations."

Key points

  • BC27 adds AsReadOnly and AsReadWrite to the AllowInCustomizations property. Never still keeps fields out of page customizations.
  • With AsReadOnly, a field can be added in a page customization but not made editable. Setting Editable to true gives error AL0808.
  • ToBeClassified (the default) and the deprecated Always both behave like AsReadOnly. Using Always produces warning AL0667.
  • The property can now be set on tables and table extensions. On an extension it only covers fields declared in that extension.
  • The new analyzer rules AS0138, AS0139 and PTE0026 are optional and do not block AppSource or PTE uploads.

Quotes

  • “AsReadOnly - allows use in page customizations, but only as read-only. AsReadWrite - allows fields to be made editable in page customizations.” (These new values provide explicit control over field editability in customizations, replacing the ambiguous Always value)
  • “For efficiency, AllowInCustomizations can now also be set at the table and table extension level.” (Setting the property at higher levels simplifies field management when the same rule applies to multiple fields)

Heads up

  • preview-disclaimer: “This new feature is not yet documented in the Business Central 2025 release wave 2 (BC27) release plan” (about version BC27)
  • gotcha: “The default value ToBeClassified and the obsolete value Always both behave like AsReadOnly.” (about version BC27)
  • warning: “On table extensions, this only applies to fields declared in the table extension and does not affect the base table fields.” (about version BC27)

Context

  • Features: AllowInCustomizations property values, field-level customization control, table-level property assignment, table extension property assignment, analyzer rules for field classification
  • Versions: BC27, 2025 wave 2

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.