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

Notifications

Announcements

No record found.

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,013

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,166 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,013 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans