Select Page

Changes to Microsoft Dynamics NAV 2016 Administration Shell and Microsoft Dynamics NAV 2016 Development Shell cmdlets

Changes to Microsoft Dynamics NAV Cmdlets from Previous Release

The following sections provide an overview of the new, changed, and removed cmdlets in the Microsoft Dynamics NAV 2016 Administration Shell and Microsoft Dynamics NAV 2016 Development Shell since the previous release.

 

Changes to Microsoft Dynamics NAV 2016 Administration Shell Cmdlets

 

New Cmdlets

The following table includes the new cmdlets in the current release.

Cmdlet Description
Export-NAVEncryptionKey Exports an encryption key from a Microsoft Dynamics NAV Server instance to a password protected file.
Get-NAVTableConnection Gets a list of connections to external database tables from a Microsoft Dynamics NAV application.
Import-NAVEncryptionKey Imports an encryption key from a password protected file to a Microsoft Dynamics NAV Server instance.
New-NAVEncryptionKey Creates an encryption key in a password protected file.
New-NAVTableConnection Registers a connection to an external database table so the table can be used by the Microsoft Dynamics NAV application.
Remove-NAVTableConnection Removes a connection to an external database table from the Microsoft Dynamics NAV application.
Remove-NAVWebServerInstance Removes a Microsoft Dynamics NAV Web Server instance on IIS.

 

Changed Cmdlets

The following table includes the cmdlets that have changed in the current release.

Cmdlet Description
Dismount-NAVTenant ApplicationDatabaseCredentials parameter added.

ApplicationDatabaseName parameter added.

ApplicationDatabaseServer parameter added.

InputTenantRuntimeSettings parameter added.

InputTenantSettings parameter added.

InputObject parameter removed and replaced by InputTenantRuntimeSettings and InputTenantSettings parameters.

DoNotSaveConfiguration parameter removed.

Export-NAVData ApplicationDatabaseCredentials parameter added.

DatabaseCredentials parameter added.

Get-NAVCompany FileName parameter changed to FilePath.
Get-NAVDataFile FileName parameter changed to FilePath.
Get-NAVTenant ApplicationDatabaseCredentials parameter added.

ApplicationDatabaseName parameter added.

ApplicationDatabaseServer parameter added.

Import-NAVData ApplicationDatabaseCredentials parameter added.

DatabaseCredentials parameter added.

Mount-NAVApplication DatabaseCredentials parameter added.
Mount-NAVTenant ApplicationDatabaseCredentials parameter added.

ApplicationDatabaseName parameter added.

ApplicationDatabaseServer parameter added.

AzureKeyVaultSettings parameter added.

DatabaseCredentials parameter added.

DefaultTimeZone parameter added.

EncryptionProvider parameter added.

NasServicesEnabled parameter added.

RunNasWithAdminRights parameter added.

New-NAVServerInstance DatabaseCredentials parameter added.

Multitenant parameter added.

Set-NAVServerInstance DatabaseCredentials parameter added.
New-NAVServerUser ContactEmail parameter added.
Set-NAVServerUser ContactEmail parameter added.

 

Removed Cmdlets

The following table includes the removed cmdlets in the current release.

Cmdlet Description
Save-NavTenantConfiguration Saves the current tenant configuration on the specified Microsoft Dynamics NAV Server instance. Tenant information is now stored in the database.

 

Changes to Microsoft Dynamics NAV 2016 Development Shell Cmdlets

 

New Cmdlets

The following table includes the new cmdlets in the current release.

Cmdlet Description
New-NAVCrmTable Creates Microsoft Dynamics NAV table objects that are based on Microsoft Dynamics CRM entities.

 

Changed Cmdlets

The following table includes the cmdlets that have changed in the current release.

Cmdlet Description
None

 

Removed Cmdlets

The following table includes the removed cmdlets in the current release.

Cmdlet Description
None

Changes to C/AL Functions, Data Types, Properties, and Triggers in Microsoft Dynamics NAV 2016

Changes in C/AL Behavior and Support from Earlier Versions of Microsoft Dynamics NAV

The following table provides an overview of the new, removed, or changed C/AL data types, functions, properties, and triggers in Microsoft Dynamics NAV 2016 since the previous version of Microsoft Dynamics NAV.

C/AL Functions

The following table lists the new, removed, or changed functions in Microsoft Dynamics NAV 2016.

Function Description
ADDFIELD Function New function.

Adds a table field to the filter control for a table on filter page.

ADDFIELDNO Function New function.

Adds a table field to the filter control for a table as specified by the field number.

ADDRECORD Function New function.

Adds a filter control for a table to a filter page as specified by a record data type variable.

ADDRECORDREF Function New function.

Adds filter control for a table to a filter page as specified by a RecordRef variable.

ADDTABLE Function New function.

Adds filter control for a table to a filter page.

BINDSUBSCRIPTION Function New function.

Binds event subscribers to the subscriber codeunit instance for handling events.

UNBINDSUBSCRIPTION New function.

Unbinds event subscribers from the subscriber codeunit instance for handling events.

COUNT Function (FilterPageBuilder) New function.

Gets the number of filter controls that are specified in the FilterPageBuilder object instance.

CREATEENCRYPTIONKEY Changed function.

Includes a Boolean return value. The value is true if an encryption key is created successfully; otherwise, it is false.

CURRENTCLIENTTYPE Function New function.

Gets the Microsoft Dynamics NAV client type that is running on the current session.

CURRENTCOMPANY Function (Record) New function.

Gets the current company of a database table record.

CURRENTCOMPANY Function (RecordRef) New function.

Gets the current company of a database table that is referred to by a RecordRef.

DEFAULTCLIENTTYPE Function New function.

Gets the default Microsoft Dynamics NAV client type that is configured for the Microsoft Dynamics NAV Server instance that is used for the current session.

GETASCENDING Function (Record) Gets the sort order for the records returned, such as in data from an ODATA web service.
GETURL Function Changed function. Includes the following changes:

  • Accepts CURRENTCLIENTTYPE and DEFAULTCLIENTTYPE as ClientType parameter.
  • Supports RecordRef variable data type as a parameter to specify the record to open.
  • Includes a Boolean parameter to include filters that are setup on the object in URL.
GETVIEW function (FilterPageBuilder) New function.

Gets the filter view (which defines the sort order, key, and filters) for the record in the specified filter control of a filter page.

IMPORTENCRYPTIONKEY Changed function.

Includes a Boolean return value. The value is true if an encryption key is imported successfully; otherwise, it is false.

ISFILTERPAGEBUILDER Function (Variant) New function.

Indicates whether a C/AL variant contains a FilterPageBuilder variable.

ISTEMPORARY Function (Record) New function.

Determines whether a record refers to a temporary table.

NAME Function (FilterPageBuilder) New function.

Gets the name of a table filter control that is included on a filter page based on an index number that is assigned to the filter control.

RECORDID (Record) New function.

Gets the RecordID of the record that is currently selected in the table.

RUNMODAL Function (FilterPageBuilder) New function.

Builds and runs the filter page.

SETASCENDING Function (Record) Sets the sort order for the records returned, such as in data from a ODATA web service.
SETVIEW Function New function.

Sets the current filter view, which defines the sort order, key, and filters, for a record in a filter control on a filter page.

GETDEFAULTTABLECONNECTION Function (Database), HASTABLECONNECTION Function (Database), REGISTERTABLECONNECTION Function (Database), SETDEFAULTTABLECONNECTION Function (Database), and UNREGISTERTABLECONNECTION Function (Database) New functions. Registers, sets, gets, and unregister table connections to external tables.

 

C/AL Properties

The following table lists the new, removed, or changed properties in Microsoft Dynamics NAV 2016.

Function Description
Event Property New property.

Used for events. Specifies whether a function is a publisher of or subscriber to an event.

EventFunction Property New property.

Used for events. Specifies the event publisher function that an event subscriber function subscribes to.

EventPublisherObject Property New property.

Used for events. Specifies the object that contains the event publisher function that an event subscriber function subscribes to.

EventSubscriberInstance Property New property.

Specifies how event subscriber functions in a codeunit are bound to codeunit instance and events that they subscribe to.

EventType Property New property.

Used for events. Specifies whether an event is a business or integration event.

GlobalVarAccess Property New property.

Used for events. Specifies whether global variables in an event publisher object can be accessed from event subscriber functions.

IncludeSender Property New property.

Used for events. Specifies whether global functions in an event publisher object can be called from event subscriber functions.

Namespaces Property New property.

Specifies one or more namespaces on an XMLport object.

NamespacePrefix Property New property.

Specifies a namespace prefix on an element of an XMLport object.

OnMissingLicense Property New property.

Specifies what happens to the event subscriber function call when the license of the Microsoft Dynamics NAV user account that is running the current session does not include the codeunit that contains the subscriber function.

OnMissingPermission Property New property.

Specifies what happens to the subscriber function call when the Microsoft Dynamics NAV user account that is running the current session does not have permission to the codeunit that contains the subscriber function.

EventPublisherElement Property New property.

Used for events. Specifies the table field that the trigger event pertains to.

Scope Property New property.

Specifies the scope of actions to be either Repeater or Page.

SQL Timestamp Property New property.

Specifies a field to be a timestamp field that contains row version numbers for records.

TableType Property Specifies whether the table is a normal or external (CRM or ExternalSQL) table.
TryFunction Property New property.

Specifies the function to be try function, which can be used to catch and handle errors and exceptions that occur when code is run.

FunctionType Property (Upgrade Codeunits) Changed property.

Instead of the Upgrade option, there are now two options: UpgradePerCustomer and UpgradePerDatabase. The UpgradePerCustomer option behaves like the Upgrade option in the previous Microsoft Dynamics NAV version.

FunctionType Property (Test Codeunits) Changed property.

Includes the FilterPageHandler and HyperlinkHandler optiions.

 

C/AL Statements

The following table lists the new, removed, or changed C/AL statements in Microsoft Dynamics NAV 2016.

Statement Description
FOREACH New statement.

Iterate through a .NET Framework collection or array. For more information, see FOREACH Control Structure.

BREAK New statement.

Terminates the iteration statement in which it used. For more information, see C/AL BREAK Statement.

Important
If your solution has used FOREACH or BREAK as names of variables in earlier versions of Microsoft Dynamics NAV, you must change the names before you upgrade to Microsoft Dynamics NAV 2016. Alternatively, you can enclose the variable names in quotation marks. If you do not, and you import an object that has this code in text format, you cannot compile the object.

C/AL Editor, Development Environment and Windows client Keyboard Shortcuts in NAV 2016

In Microsoft Dynamics NAV 2016, Microsoft has introduce some new keyboard shortcuts. You can find full list of keyboard shortcuts here.

C/AL Editor Keyboard Shortcuts

The following table describes the keyboard shortcuts that are available from the C/AL Editor window.

Keystroke Action
Ctrl+G Open the C/AL Globals window to view and declare the global variables, text constants, and functions in the object.
Ctrl+L Open C/AL Locals window to view and declare local variables and text constants for the current function or trigger.
Ctrl+Z Undo the last action.
Ctrl+Y Redo the last action.
Ctrl+J List all members (as IntelliSense) for the local scope.
Ctrl+Space List the members (as IntelliSense) for global scope.
Ctrl+W Select the word.
Ctrl+U Make the selected code lowercase.
Ctrl+Shift+U Make the selected code uppercase.
Ctrl+Shift+N Expand all collapsed code.
Ctrl+K+I Display information about C/AL symbol (such as variable, functions, and parameter) in which the cursor is positioned. This displays the same text as when you point to the element.

 

Keyboard Shortcuts in the Development Environment

The following table provides an overview of shortcut key combinations in the Microsoft Dynamics NAV Development Environment.

Keyboard Shortcut Action
Right Arrow Move to the next field or character
Left Arrow Move to the previous field or character
Up Arrow Move to the field above in the same column
Down Arrow Move to the field below in the same column
Delete Clear selected text
Esc Close the window or undo the data entry
End Move to the last field on a line
Home Move to the first field on a line
Arrow, Tab, Enter Move to the next field on non-line FastTabs
F1 Open Help
F10, Alt Select the menu bar and display access keys
F6 Drop-down or look up to view/select
Arrow, Shift+Tab Move to the previous field
Ctrl+C Copy
Ctrl+O or F12 Open the company
Ctrl+V Paste
Ctrl+X Cut
Ctrl+Z Undo
Ctrl+Home Move to the first line in a list
Ctrl+End Move to the last line in a list
Esc Save and close window (equivalent to choosing the OK button)
F3 Insert new line
Alt+F4 Close window or close program

 

Keyboard Shortcuts in the Microsoft Dynamics NAV Windows client

The following table provides an overview of shortcut key combinations in the Microsoft Dynamics NAV Windows client.

Microsoft Dynamics NAV Windows client Action
Right Arrow Move to the next field or character
Left Arrow Move to the previous field or character
Up Arrow Move to the field above in the same column
Down Arrow Move to the field below in the same column
Delete Clear selected text
Esc Close the window or undo the data entry
End Move to the last field on a line
Home Move to the first field on a line
Tab Move to the next field on non-line FastTabs
Enter Move to the next editable field
F1 Open Help
F2 Edit
F3 Select Type to filter (field filter)
F4 Drop-down or look up to select
F5 Refresh the active window
F6 Go to the next frame
F7 Display statistics
F8 Copy the field above
F9 Post
F10, Alt Select the menu bar and display access keys
F12 Select the navigation pane
Shift+F1 View error message
Shift+F3 Select Show Results (FlowFilter)
Shift+F4 Open a lookup window (from an ellipsis button)
Shift+F6 Go to the previous frame
Shift+F7 Open the related card
Shift+F8 Drop-down or look up to view
Shift+F9 Post and print
Shift+F10 Display a shortcut menu
Shift+F11 Apply entries, get source documents, or get warehouse documents
Shift+F12 Open the Role Center from the navigation pane
Shift+Tab Move to the previous field
Shift+left-click On multiple column headers, the columns will all be sorted in the same ascending or descending direction.
Shift+double-click If sorting on multiple column headers using Shift+left-click, use Shift+double-click on the first column that was clicked on and this will toggle ascending/descending direction of all the columns included in the sorting.
Left-click Left-click on a column header to sort a column ascending, then left-click again to toggle between ascending and descending.
Ctrl+F1 Collapse or expand the ribbon
Ctrl+F2 Create a new document
Ctrl+F3 Select Search pages
Ctrl+F4 Look up to the related list
Ctrl+F7 View entries
Ctrl+F9 Release document
Ctrl+F10 Select the ribbon and display key tips
Ctrl+F11 Reconcile or split lines
Ctrl+F12 Select the address bar
Ctrl+C Copy
Ctrl+G Go to
Ctrl+E Export to Microsoft Office Excel
Ctrl+L Show links
Ctrl+N Create a new record
Ctrl+O Open the company
Ctrl+P Print
Ctrl+T Select sorting
Ctrl+V Paste
Ctrl+W Export to Microsoft Office Word
Ctrl+X Cut
Ctrl+Z Undo
Ctrl+Page Down Display next document or card in a list
Ctrl+Page Up Display previous document or card in a list
Ctrl+Up Arrow Move up while the selected line stays selected
Ctrl+Down Arrow Move down while the selected line stays selected
Ctrl+Left Arrow Move to the first field on a line
Ctrl+Right Arrow Move to the last field on a line
Ctrl+Alt+F1 Open the About this Page/Report window (Zoom)
Ctrl+Delete Delete the selected line
Ctrl+Home Move to the first line in a list
Ctrl+End Move to the last line in a list
Ctrl+Enter Save and close window (equivalent to choosing the OK button)
Ctrl+Insert Insert new line
Ctrl+Shift+F3 Select Limit totals to (table filter)
Ctrl+Shift+A Clear all filters
Ctrl+Shift+C Copy Rows
Ctrl+Shift+D Show dimensions
Ctrl+Shift+E Edit list
Ctrl+Shift+R View list
Ctrl+Shift+Q Collapse/expand a line in a hierarchy
Ctrl+Shift+V Paste rows
Ctrl+Shift+W Open a list place in a separate window
Ctrl+Shift+Enter Save and close the window and open a new window
Alt Display access keys in the ribbon
Alt+F2 Toggle to display/hide FactBoxes
Alt+F3 Filter to the value in the field
Alt+F4 Close window or close program
Alt+F6 Collapse or expand the active frame
Alt+F12 Optimize space for the current page
Alt+Left Arrow Go to the previous window in the navigation history
Alt+Right Arrow Go to the next window in the navigation history
Alt+Enter Move to the field below without opening the drop-down menu
Alt+Tab Toggle between open windows

 

Cumulative Update 12 for Microsoft Dynamics NAV 2015

Hi,

Please find more information about Cumulative Update 12 for Microsoft Dynamics NAV 2015 below.

Cumulative Update 12 includes all application and platform hotfixes and regulatory features that have been released for Microsoft Dynamics NAV 2015.

The cumulative update is intended mainly for solutions that are experiencing the problems described in the Knowledge Base article linked to below. However, you are advised to always keep your solution updated with the latest cumulative update. If you are in doubt about whether this cumulative update addresses your specific problem, or if you want to confirm whether any special compatibility, installation, or download issues are associated with this cumulative update, support professionals in Customer Support Services are ready to help you. For more information, see http://support.microsoft.com/contactus/.

The cumulative update includes hotfixes that apply to all countries and hotfixes specific to the following local versions:

  •   AU – Australia
  •   AT – Austria
  •   BE – Belgium
  •   CH – Switzerland
  •   CZ – Czech Republic
  •   DE – Germany
  •   DK – Denmark
  •   ES – Spain
  •   FI  – Finland
  •   FR – France
  •   IS – Iceland
  •   IT – Italy
  •   NA – North America
  •   NL – Netherlands
  •   NO – Norway
  •   NZ – New Zealand
  •   RU – Russia
  •   SE – Sweden
  •   UK – United Kingdom

Note: You must convert the database if you are upgrading to this cumulative update from a cumulative update earlier than Cumulative Update 9 (build 41779). For more information, see Converting a Database in Help for Microsoft Dynamics NAV.

Note: To enable customized translation of profiles, a number of actions are now available on the Profile List page. You can export and import resource files to enable translation for one or more profiles. The steps to install and uninstall language modules have also been modified. For more information, see How to: Install Language Modules, How to: Uninstall Language Modules, and How to: Export, Edit, and Import Translated Profile Strings in Help for Microsoft Dynamics NAV.

Where to find Cumulative Update 12

You can download the cumulative update from KB 3097767 – Cumulative Update 12 for Microsoft Dynamics NAV 2015 (Build 42951).

Windows 10 and Office 2016

The NAV team is proud to announce that with this cumulative update, Microsoft Dynamics NAV 2015 is compatible with Windows 10 and Office 2016.

Warning

Before you install a cumulative update in a production environment, take the following precautions:

  1. Test the cumulative update in a non-production environment.
  2. Make a backup of the system or computer where the cumulative update is to be installed.

Additional Information

For information about how to install the cumulative update, see How to Install a Microsoft Dynamics NAV 2015 Cumulative Update.

For information about how to work around a recent process change, see How to Get Back the ‘Hotfix Directories’ from NAV 2015 Cumulative Update 1.

For a list of all cumulative updates for this version, see Released Cumulative Updates for Microsoft Dynamics NAV 2015.

To download Cumulative Update requires valid partnersource/customersource login.

Ctrl+G and Ctrl+L in NAV 2016

In Microsoft Dynamics NAV 2016 we have two now keyboard shortcuts for

  • C/AL Globals : Ctrl+G
  • C/AL Locals : Ctrl+L

View Menu NAV 2016

In earlier versions we are using

  • C/AL Globals : Alt+V+B
  • C/AL Locals : Alt+V+A

In NAV 2016 both the shortcuts are working, but I can feel that new shortcuts are more faster then older one. Microsoft has keep both the shortcuts in NAV 2016 but may be in next version we don’t have older shortcuts.

So start using new(faster one) shortcuts…!!!