How it works...

Similar to installations, PowerShell is also used when performing an upgrade on a Business Central application in an on-premises environment. The involved are similar to the installation process, with the exception of the final command:

  • Publish-NavApp makes it possible for the application to be installed within the specific Business Central server instance.
  • Sync-NavApp synchronizes the database schema changes required for the app to a tenant database. Make sure to use the version parameter to specify that you are syncing the new version of the application.
  • Start-NAVAppDataUpgrade upgrades an existing application in a tenant's database. Use the version parameter to specify which version you are upgrading to.
In order to perform the preceding commands, you're going to need to have the appropriate rights to the Business Central system in order to publish and install applications.

When you are building new versions of your application, you must make sure that the "id" property value in app.json does not change between the application versions.

The "id" value is used by the system to determine that you are upgrading an existing application. If you change that value, then you will break that link and the system will think you are simply installing a brand new application.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
52.14.151.45