Plan the customization update lifecycle
The extension graph defines what can change independently, but it also reveals what must be retested together. You now turn the scenario's architecture into an update lifecycle with explicit compatibility, schema, data, and ownership decisions.
Distinguish service updates from app updates
A Business Central solution changes along several tracks. Business Central online receives Microsoft service and application updates. Microsoft apps, marketplace apps, and per-tenant extensions each have their own versions and release processes. On-premises deployments add operating system, SQL Server, Business Central Server, and application update tasks owned by the environment operator.
Treat these tracks as related but separate:
- A service update changes the Microsoft-operated platform or application in Business Central online.
- An app update replaces an installed extension with a higher app version.
- A dependency update changes a contract consumed by another app.
- A data upgrade transforms stored extension data so that it matches the new app model.
Business Central online provides sandbox environments where teams validate an upcoming service update. The developer compiles each extension against the target symbols, publishes it to an updated sandbox, and runs scenario-based regression tests. This process finds removed or obsolete contracts, changed event behavior, and integration assumptions before the production environment updates.
On-premises teams control the update schedule, but control doesn't remove compatibility work. They validate the server, application, extensions, integrations, and database upgrade as one release plan. Delaying updates can increase the version distance and the number of changes that a later upgrade must absorb.
Define manifest and dependency compatibility
The extension manifest makes several compatibility statements. Increment the app version for every released package. Set application and platform to the minimum Business Central baseline that the app supports. Select a runtime that is available in that baseline and contains the AL capabilities the app uses.
Each explicit dependency also carries a minimum version. When a provider app changes a published object or method, its owner determines whether consumers remain compatible. The consuming app owner recompiles and tests against the provider's new symbols. Coordinate releases when a provider introduces a contract that a consumer requires.
Use obsoletion attributes to phase out extension contracts instead of deleting them without notice. A staged approach marks an element pending, gives consumers time to move, and removes it only under the team's versioning policy. The compiler then surfaces use of obsolete contracts during validation.
Plan schema synchronization and data upgrade
Publishing an extension synchronizes its table and table-extension metadata with the tenant database. Additive changes, such as a new field, normally preserve existing data. Destructive or incompatible changes require deliberate handling because a field ID represents persisted data, not just source code.
Follow these schema rules:
- Keep object and field IDs stable after release.
- Don't reuse an ID for a different meaning.
- Use obsoletion and a staged migration before removing schema.
- Test synchronization against a copy of representative data.
- Reserve destructive synchronization modes for disposable development environments.
ForceSync can allow destructive schema changes during development, and it can delete data. It isn't an update strategy for production. A production-ready update preserves schema long enough to copy or transform data, then removes obsolete elements in a later version when the platform and policy permit the change.
When a new version must transform data, use an upgrade codeunit with Subtype = Upgrade. Its upgrade triggers run during the app upgrade process. Upgrade tags help the code determine whether a migration already runs, which makes upgrade logic repeatable and prevents the same transformation from running twice. Separate install logic for a new installation from upgrade logic for an existing installation.
For every schema change, classify the action:
| Change | Typical lifecycle action |
|---|---|
| Add a field with no derived value | Synchronize schema and verify defaults. |
| Add a field derived from existing data | Synchronize, run upgrade code, and verify transformed records. |
| Change the meaning or type of stored data | Add replacement schema, migrate data, redirect code, and retire old schema later. |
| Remove an object or field | Mark it obsolete, remove dependencies, preserve or migrate data, and follow the supported removal process. |
Assign lifecycle ownership and evidence
The architecture decision isn't complete until each activity has an owner. A practical ownership matrix includes:
| Activity | Primary owner | Required evidence |
|---|---|---|
| Monitor Business Central roadmap and update notifications | Service administrator | Recorded impact review and target dates. |
| Maintain extension manifests and source | App publisher | Versioned source, package, and release notes. |
| Validate provider and consumer dependencies | App owners | Successful compilation and dependency tests. |
| Test schema synchronization and upgrade code | App publisher and test owner | Upgrade log, record counts, and business validation. |
| Approve production deployment | Solution owner | Signed release decision and rollback or recovery plan. |
The scenario's developer adds gates for compile, publish, install or upgrade, functional regression, integration validation, and data verification. Each gate names the target environment and evidence location. A failure routes back to the owner of the affected contract rather than becoming a general platform issue.
Use the customization update lifecycle to frame the end-to-end process, and use upgrading extensions to plan schema and data transitions. The exercise applies these decisions in a live sandbox and captures the result in an architecture decision record.