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.
- 6Learn pages
- 2videos
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
- How to Unpublish and Uninstall an Extension: Description of the process of upublishing and uninstalling an extension
- Maintain Marketplace apps and per-tenant extensions: Learn about resources available to you as the publisher of an app or per-tenant extension for keeping your code in compliance with the base product.
- Manage and Submit Business Central Offers FAQ: Learn how to submit and publish Business Central offers in Partner Center, update Marketplace listings, and monitor technical validation results.
- Publishing and Installing an Extension: Description of the process of publishing and installing an extension.
- Upgrading Marketplace Apps in Production: Review options for updating Marketplace apps installed in Business Central production environments and find the administration center guidance.
- Writing Extension Installation Code: Write extension install code in AL to initialize Business Central data, distinguish first installation from reinstallation, and use install triggers.
Videos, posts and code changes
Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.
- #2376 fix: modified files with umlauts (code change): “Incremental build detection now finds project and app paths that contain umlauts”
- #2465 De-duplicate library app dependencies when delivering app source apps. (code change): “AL-Go now removes duplicate library app dependencies when delivering app source apps”
- #10046 Obsolete objects and add deprecation notices for PTE upload/install in Extension Management (code change): “Legacy SaaS PTE upload actions, pages, public codeunit methods are marked pending obsolete”
- #11065 Open installation status after AppSource install failure (code change): “Failed AppSource installations now display a prompt to open installation status”
- #12626 Fix AppSource product details opening in write transactions (code change): “Changed from Page.RunModal() to Page.Run() to avoid write transaction conflicts”
- #13558 Add logging table management during installation and upgrade processes (code change): “Add logging table management during installation and upgrade processes”
- #14619 [Fabric] Fix installation with an existing upgrade tag (code change): “Fabric installation now guards the database upgrade tag insert to prevent duplicate-key errors”
- Managing Apps in the Business Central Admin Center (community post): “Installing a PTE means choosing a deployment schedule and a sync mode”
- BC Friday Tips #85 Schedule PTE Extension Updates from the Admin Centre (community post): “Business Central automatically deploys extensions during the scheduled window”
- Business Central 29: Manage Per-Tenant Extensions from the Admin Center (community post): “Admin Center APIs expose PTE deployment operations, enabling automation”
- Dynamics 365 Business Central: Automatically enable Allow HttpClient Requests after custom extension/app installation (community post): “automatically enable the Allow HttpClient Requests setting for custom extensions during installation”
- Dynamics 365 Business Central: Cancelling a scheduled PTE update install (Next Major/Next Minor) (community post): “cancelling a scheduled app update when deploying to the next version”
- Dynamics 365 Business Central: Upload, install, and manage PTEs in the admin center (Remove ability to upload and install PTEs from Extension Management page) (community post): “admins can upload, install, schedule and uninstall per-tenant extensions in the Admin Center”
- Business Central 2026 release wave 2 (BC29): Retained DEV extensions (DEV extensions remain installed during environment update) (community post): “DEV extensions published from VS Code are no longer uninstalled”
- How I reduced my on-prem pipeline from 138 to 17 builds of Business Central (video): “on-prem; runtime apps; emit version; pipeline optimization”
- What’s New in AL: Dependency Publishing (2024 release wave 2) (video): “Dependency Publishing Options - Default”
Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.
What Learn documents here 6 Learn pages
- learnHow to Unpublish and Uninstall an Extension2022-05-23
- learnMaintain Marketplace apps and per-tenant extensions2026-10-23
- learnManage and Submit Business Central Offers FAQ2026-11-27
- learnPublishing and Installing an Extension2025-02-05
- learnUpgrading Marketplace Apps in Production2026-11-30
- learnWriting Extension Installation Code2026-11-30