Wednesday, October 9, 2019

Dynamics NAV - How to update an AL extension

https://cloudblogs.microsoft.com/dynamics365/no-audience/2018/01/16/generate-symbols-in-a-modern-development-environment-with-microsoft-dynamics-nav-2018/

Ensure the following are ticked on your instance
  •  Development>Enable Developer Service Endpoint
  • Odata Services>Enable Odata Services
Run This in CMD

  • Open the CMD in administrator mode. Navigate to the Role Tailored Client folder (CD Path to folder). Run the following command
  • cd 'C:\Program Files (x86)\Microsoft Dynamics 365 Business Central\140\RoleTailored Client'
  • .\finsql.exe Command=generatesymbolreference, Database=MYDB, ServerName=[Sql server/Instance]
  • Go to Task Manager>Details to see if it's running. It silent, and takes about 15 minutes.
  • If you get any errors with the next scripts, the finsql is still running
Run this in Powershell
  • Uninstall-NAVApp -ServerInstance YourDynamicsNAVServer -Name 'App Name'
  • UnPublish-NAVApp -ServerInstance YourDynamicsNAVServer -Name 'App Name'
  • Publish-NAVApp -ServerInstance YourDynamicsNAVServer -Path ".\MyExtension.app" -SkipVerification
  • Sync-NAVApp -ServerInstance YourDynamicsNAVServer -Name 'App Name'
  • Install-NAVApp -ServerInstance YourDynamicsNAVServer -Name 'App Name'

example


Publish-NAVApp -ServerInstance UAT -Path 'C:\Mods\Module_1.0.0.0\Module_1.0.0.0.app' -SkipVerification



Sync-NAVApp -ServerInstance UAT -Name ‘Module’



Install-NAVApp -ServerInstance UAT -Name ‘Module’


No comments:

Post a Comment