In C/AL-based versions of D365 BC/Business Central, functionality was updated through *.fob (or .txt) files. As of this release, functionality updates are done by replacing apps. The following steps describe the process.
Steps
Run Windows PowerShell ISE as administrator.
Load the D365 BC 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
BC150with the correct server instance):Get-NAVAppInfo -ServerInstance BC150Uninstall the current app (this example replaces Product Engineering Quality):
Uninstall-NAVApp -Name "PE Quality" -ServerInstance BC150Publish the new app (replace the path and version number):
Publish-NAVApp -Path "C:\...\Artifacts\IEMW115.2.38990.0\Lifecycle\app\To-Increase_PE Quality_15.2.xxxxx.0.app" -ServerInstance BC150Sync the new app:
Sync-NAVApp -Name "PE Quality" -ServerInstance BC150 -Version 15.2.xxxxx.0Upgrade the new app:
Start-NAVAppDataUpgrade -Name "PE Quality" -ServerInstance BC150 -Version 15.2.xxxxx.0Remove the old app:
Unpublish-NAVApp -Name "PE Quality" -ServerInstance BC150 -Version 15.2.xxxxx.0
Note:
Data is always retained in the SQL Server tables. None of these commands modify or remove the underlying data.