This morning I’ve had access to a GitHub project using Internet Explorer and appeared a notification bar on the top of the page to inform that “GitHub no longer supports Internet Explorer” and suggesting to use Microsoft Edge, Google Chrome or Firefox.
In order to work with NAV containers I highly recommend to use NAVContainerHelper PowerShell module. In the version 0.5.0.0 a new really powerfull function Invoke-ScriptInNavContainer has been released, it allows you to invoke a PowerShell scriptblock in a NAV container.
Using NAVContainerHelper you do not have to care about loading NAV modules because they are already part of it and loaded, so to return to the title of this post, the script to synchronize database schema is:
Invoke-ScriptInNavContainer has two mandatory parameters, the name of the container and the script block. In the script block I’m using two standard PowerShell functions included in the NAV module Microsoft.Dynamics.Nav.Management: