topic hubAL Developmentofficial - Microsoftunreviewed - model text not yet checked

Deploying and installing

Deploying and installing covers how Business Central extensions are published, synchronized, installed, upgraded, unpublished and uninstalled, and how to write install code. It also covers keeping Marketplace apps and per-tenant extensions current and submitting offers in Partner Center. Use it for extension lifecycle and deployment questions.

Path: Development > Extension lifecycle > Deploying and installing · tier official · system development · narrative unreviewed (model text not yet checked)

Overview

This section covers the practical steps of moving an extension through its lifecycle on a Business Central server. The core flow is to publish the package to the server, synchronize it with the tenant database, and install it for users. The pages describe this with the publish-navapp, sync-navapp and install-navapp cmdlets and the extension management page.

Related pages cover what happens around install. One explains how to write install code with install codeunits. Others explain upgrading Marketplace apps in production by uninstalling and reinstalling, and the three levels of removal: uninstall, unpublish and clean-mode synchronization.

For publishers and resellers, one page covers maintaining Marketplace apps and per-tenant extensions across major and minor releases, and an FAQ covers submitting and publishing offers in Partner Center. Start with Publishing and Installing an Extension for the basic flow, then go to the page that fits your task.

Key points

  • Deploying an extension means publishing the package to the server (publish-navapp), synchronizing it with the tenant database (sync-navapp), and installing it (install-navapp) or using the extension management page.
  • Install code uses an install codeunit with the OnInstallAppPerCompany and OnInstallAppPerDatabase triggers for company-related and database-related operations.
  • Install code can populate data, call services, send telemetry and check versions, using the ModuleInfo data type, DataVersion property and NAVApp.GetCurrentModuleInfo method.
  • Removal has three levels: uninstall disables the extension on tenants, unpublish removes it from the server instance, and clean-mode synchronization deletes the database schema and orphaned data.
  • Upgrading Marketplace apps in production uses an uninstall and reinstall workflow, with attention to dependencies and data retention options.
  • Publishers and resellers must keep Marketplace apps and per-tenant extensions compatible with major and minor releases, using preview versions, enforcement periods, automated validation and the AppSourceCop analyzer.
  • The Partner Center FAQ covers the Go Live button, publisher signoff, Review and publish, technical validation, preview version publication and marketing changes.

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