web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

App Scope and version update

(0) ShareShare
ReportReport
Posted on by 3,029

Have 2 questions about publishing apps to a Business Central 17 OnPrem installation

I've noticed, that when I'm working with VS Code, and hit F6, the app is publish with Scope: Tenant, and Tenant deffault

But, when I use the powershell command "Publish-NAVApp -ServerInstance bc170..." the Scope is Global, with no tenant

Is it possible to publish to scope: Global from VS Code?

And the next question is, for example I have an app in version 1.0.0.20 published in BC170. When I want to publish the next version, 1.0.0.21, do I have to manually uninstall the previous version, or is there a command to automatically uninstall the old version and publish the new one? Can this update be done from VS Code?

Thanks.

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    1) No.

    2) You can use POwershell cmdlets (and the app is updated automatically) or you can directly update from VS Code (hitting F5 updates the app).

  • Ghetz Profile Picture
    3,029 on at

    Thanks for your answer, could you point me to the powershell cmdlet to update the app? Currently I use these commands:

    Uninstall-NAVApp -ServerInstance bc170 -Name MyApp -Version 1.0.0.52
    Publish-NAVApp -ServerInstance bc170 -Path 'C:\Temp\MyApp_1.0.0.53.app' -SkipVerification
    Sync-NAVApp -ServerInstance bc170 -Name MyApp -Version 1.0.0.53
    Start-NAVAppDataUpgrade -ServerInstance bc170 -Name MyApp -Version 1.0.0.53
    Unpublish-NAVApp -ServerInstance bc170 -Name MyApp -Version 1.0.0.52
    Install-NAVApp -ServerInstance bc170 -Name MyApp -Version 1.0.0.53

    I would prefer to always publish with a global scope; as we don't use tenant funcionality. So I guess VS Code F5 is not an option.

  • Benny Van Lyssebettens Profile Picture
    35 on at

    Hi Ghetz,

    I use a serie of powershell-scripts wrapped in a Azure Devops Extension and we release our apps from there.

    Our install task has logic to install, upgrade and remove older version from the "gloabal" scope. There's also commercial products with same capabilities if you're not into powershell.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,687 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 974 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans