Some links about Powershell “cmdlets” for NAV
Some links about Powershell “cmdlets” for NAV
“CMDLETS” IN NAV
The cmdlets are available in two Windows PowerShell modules: Microsoft Dynamics NAV 2016 Administration Shell and Microsoft Dynamics NAV 2016 Development Shell.
- The Microsoft Dynamics NAV 2016 Administration Shell includes cmdlets for administering the Microsoft Dynamics NAV deployment, such as adding and configuring Microsoft Dynamics NAV server instances, databases, and users. Also included are cmdlets for administering extension packages. The Microsoft Dynamics NAV 2016 Administration Shell is installed with the Microsoft Dynamics NAV Server.
- The Microsoft Dynamics NAV 2016 Development Shell includes cmdlets for merging and modifying application object files. Also included are cmdlets for creating extension packages. The Microsoft Dynamics NAV 2016 Development Shell is installed with the Microsoft Dynamics NAV Development Environment.
https://msdn.microsoft.com/en-us/library/hh166599(v=nav.90).aspx
“ALL” about CMDLETS LINKS
A list of bestlinks about cmdlets in NAV 2016 (MSDN)
Administration Cmdlets for Microsoft Dynamics NAV
https://msdn.microsoft.com/en-us/library/jj672916(v=nav.90).aspx
Development Cmdlets for Microsoft Dynamics NAV
https://msdn.microsoft.com/en-us/library/dn789712(v=nav.90).aspx
Microsoft Dynamics NAV Windows PowerShell Cmdlets
https://msdn.microsoft.com/en-us/library/hh166599(v=nav.90).aspx
Comparing and Merging Application Object Source Files
https://msdn.microsoft.com/en-us/library/dn789581(v=nav.90).aspx
Administration Cmdlets for Microsoft Dynamics NAV Extensions
https://msdn.microsoft.com/en-us/library/mt584148(v=nav.90).aspx
Development Cmdlets for Microsoft Dynamics NAV Extensions
https://msdn.microsoft.com/en-us/library/mt584152(v=nav.90).aspx
Changes to Microsoft Dynamics NAV Cmdlets From Previous Release
https://msdn.microsoft.com/en-us/library/dn951485(v=nav.90).aspx
Exporting and Importing Companies and Other Data
https://msdn.microsoft.com/en-us/library/dn789595(v=nav.90).aspx
Others nice links below:
Guida introduttiva a Windows PowerShell
Sample Windows PowerShell Scripts for Microsoft Dynamics NAV
https://msdn.microsoft.com/en-us/library/dn271676(v=nav.90).aspx
Managing Dynamics NAV with PowerShell
http://www.softwareanswers.co.uk/software_answers/2014/09/managing-dynamics-nav-with-powershell.htm
About Microsoft Dynamics NAV 2016 Development Shell
CMDLETS LIST
For a complete list of cmdlets:
- Get-Command -Module Microsoft.Dynamics.Nav.Model.Tools, Microsoft.Dynamics.Nav.Apps.Tools, Microsoft.Dynamics.Nav.Apps.Management
Cms Type Name |
Function Compile-NAVApplicationObject |
Function Create-NAVDatabase |
Function Delete-NAVApplicationObject |
Function Export-NAVApplicationObject |
Function Import-NAVApplicationObject |
Function Invoke-NAVDatabaseConversion |
Cmdlet Compare-NAVApplicationObject |
Cmdlet Export-NAVApplicationObjectLanguage |
Cmdlet Export-NAVAppPermissionSet |
Cmdlet Get-NAVAppInfo |
Cmdlet Get-NAVApplicationObjectProperty |
Cmdlet Get-NAVAppManifest |
Cmdlet Get-NAVAppTenant |
Cmdlet Import-NAVApplicationObjectLanguage |
Cmdlet Install-NAVApp |
Cmdlet Join-NAVApplicationObjectFile |
Cmdlet Join-NAVApplicationObjectLanguageFile |
Cmdlet Merge-NAVApplicationObject |
Cmdlet New-NAVAppManifest |
Cmdlet New-NAVAppManifestFile |
Cmdlet New-NAVAppPackage |
Cmdlet New-NAVCrmTable |
Cmdlet Publish-NAVApp |
Cmdlet Remove-NAVApplicationObjectLanguage |
Cmdlet Repair-NAVApp |
Cmdlet Set-NAVApplicationObjectProperty |
Cmdlet Set-NAVAppManifest |
Cmdlet Split-NAVApplicationObjectFile |
Cmdlet Split-NAVApplicationObjectLanguageFile |
Cmdlet Test-NAVApplicationObjectLanguage |
Cmdlet Uninstall-NAVApp |
Cmdlet Unpublish-NAVApp |
Cmdlet Update-NAVApplicationObject |
MY FAVORITE COMMANDS: “JOIN & SPLIT”
JOIN
Join-navapplicationobjectfile (SINGLE FILE CREATION COMMAND (CREATION WITH FIRST CHECK SYNTAX IN “JOIN” COMMAND)
System stops single “file merging procedure” if any error is ecountered during converting process; system make a first check objects structure during this process.
Command
PS C:> cd E:MERGEPages
PS E:MERGEPages> Join-navapplicationobjectfile -source ‘E:MERGEPages*.txt’ –destination ‘E:MERGEPagesPages_OutPages_OutMerged.txt’
SAMPLE ERROR
“WARNING: E:MERGEPagesPAG12133.TXT (252,28) = expected.”
-a— 08/07/2016 10:28 147645 Pages_OutMerged.txt
IF FILE EXIST….
Overwrite?
E:MERGEPagesSplitFilesPagesPAG12190.TXT
[Y] Yes [A] Yes to All [N] No [L] No to All [S] Suspend [?] Help (default is “Y”):a
Well done > File correctly created after syntax parsing.
SPLIT
Split-navapplicationobjectfile (SPLIT FILES CREATION COMMAND (WITH FIRST CHECK SYNTAX IN “SPLIT” COMMAND)
System stops single “file merging procedure” if any error is ecountered during converting process; system make a first check objects structure during this process.
Command
PS C:Windowssystem32> Split-navapplicationobjectfile –source ‘E:MERGEPagesMergedFilesPages_OutMerged_12000.txt’ –destination ‘E:MERGEPagesSplitFilesPages12000_Split’
SAMPLE OUTPUT