topic hubAL Developmentofficial - Microsoftreviewed - checked by Opus

Deploying and installing

Deploying and installing covers how to publish, synchronize, install, upgrade, unpublish and uninstall Business Central extensions, write install code, and maintain Marketplace apps and per-tenant extensions. It answers questions on extension lifecycle tasks and Marketplace offer submission.

Path: Development > Extension lifecycle > Deploying and installing · tier official · system development · narrative reviewed (checked by Opus)

Overview

This section covers the operational lifecycle of an extension after it is built. It explains how to publish a package to a server, sync it with the tenant database, and install it, and how to write install codeunits that run on install or reinstall.

Further pages cover removal and updates. One explains the three levels of removing an extension: uninstall, unpublish and clean-mode schema removal. Others cover manually upgrading Marketplace apps in production and the partner duties for keeping apps compatible with major and minor releases.

A FAQ addresses managing and submitting Marketplace offers through Partner Center. Start with Publishing and Installing an Extension for the basic flow, then move to install code, upgrades and maintenance as needed.

Key points

  • Publishing and installing uses the publish-navapp, sync-navapp and install-navapp cmdlets, or the extension management page.
  • Install code uses codeunits with OnInstallAppPerCompany and OnInstallAppPerDatabase triggers, with handling for fresh installs and reinstalls.
  • Uninstall disables an extension on tenants, unpublish removes it from the server instance, and clean-mode synchronization deletes the database schema.
  • Marketplace apps in production can be upgraded manually to the latest version from the Extension Management page or the Admin Center.
  • Partners must keep apps updated with major and minor releases, including preview period testing and update and grace periods.
  • Enforced update periods and incompatibility notifications apply, and apps can be removed automatically if not updated.
  • The Marketplace offer FAQ covers the Partner Center submission process, Go Live, review and publish, and technical validation.

Learn pages

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 6 Learn pages