STAEDEAN FOOD Update Documentation

Update FOOD

In C/AL based versions of NAV/Business Central functionality was updated through *.fob (or txt) files. As of this release functionality must be updated through replacing apps. Below is a description of the steps:

Start Windows PowerShell ISE as administrator

Load the NAV Modules

Import-Module "C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\Microsoft.Dynamics.Nav.Apps.Management.psd1"
Import-Module "C:\Program Files\Microsoft Dynamics 365 Business Central\150\Service\Microsoft.Dynamics.Nav.Management.psd1"

List the apps and version numbers currently installed (replace BC150 with the correct serverinstance):

Get-NAVAppInfo -ServerInstance BC150

Uninstall the current app (as an example ESHA Genesis Integration is being replaced)

Uninstall-NAVApp -Name "ESHA Genesis Integration" -ServerInstance BC150

Publish the new app (\ ... \ copy the full path from where the Artifacts folder is downloaded and expanded)
Make sure to use the correct version numbers!

Publish-NAVApp -Path "C:\ ...\Artifacts\FOODESHA15.3.41417.0\15APPS\ESHA\app\To-Increase_ESHA Genesis Integration_15.3.41417.0.app" -ServerInstance BC150

Sync the new app

Sync-NAVApp -Name "ESHA Genesis Integration" -ServerInstance BC150 -Version 15.3.41417.0

Upgrade the new app

Start-NAVAppDataUpgrade -Name "ESHA Genesis Integration" -ServerInstance BC150 -Version 15.3.41417.0

As a last step remove the old app

Unpublish-NAVApp -Name "ESHA Genesis Integration" -ServerInstance BC150 -Version 15.2.38860.0

NOTE Data is always retained in the SQL Server tables and not touched by any of these commands

STAEDEAN Common Documentation