Skip to main content

Microsoft Dynamics NAV 2016 Extensions - Publish & Install An Extension.

Hi All,

Let's start it from where we left in Last Post.

Recap - "We understand Concept of Extension Using an Example of Shipping of Jet Report Solutions. Later We did a customization on a Standard NAV 2016 W1 Database For Cancel Order Using Events. After That We Created an Manifest File for our Extension. Finally we were able to Create the Navx Package for Our Extension."

If you are not following the Extension Series Then Refer the Table of Contents For Extensions.

In This Article we will see how we can publish & Install the Extension in our Customer Database, which in this case is a Standard Cronus NAV 2016 W1 Database.



We will be Deploying the Extension on the Extension_Demo2 Database which we created Earlier. Let's Not waste Time and start the Demo.

** Publish Means That the Extension is in the System but Not active for Usage.
** Install Means That the Extension is active and can be used for by the users.

A system can have multiple published Extension but the User can use only those who are installed.

Prerequisite -
> A Service Should be Mapped & Running to Our Extension_Demo2 Database Named as ExtesnionDemo2.

1. Lets Start Powershell and Load Navision Module using Cmdlet -
-------------------------------------------------------
Set-ExecutionPolicy RemoteSigned
Import-Module 'C:\Program Files (x86)\Microsoft Dynamics NAV\90\RoleTailored Client\NavModelTools.ps1'
-------------------------------------------------------

2. Search for Cmdlet - Publish-NAVApp, and assign parameters value as below - 
Path - C:\Extensions\CancelOrder.Navx  (Path of the Package)
ServerInstance - ExtensionDemo2 (Service Mapped To Extension_Demo2 Database)
------------------------------------------------------
Publish-NAVApp -Path C:\Extensions\CancelOrder.Navx -ServerInstance ExtensionDemo2
------------------------------------------------------



3. After Execution of Above cmdlet, the Package will be Published on the Database Mapped to Service Instance.

4. You can check all Published Package on the Database Using Cmdlet - Get-NAVAppInfo
--------------------------------------------------------
Get-NAVAppInfo -ServerInstance ExtensionDemo2
--------------------------------------------------------

5. Now The Next Part is to install the Navx Package on the Customer Database. Search for Cmdlet - Install-NAVApp.

Assign Parameter Values as Below -
Name - CancelOrder (Navx Package Name)
ServerInstance - ExtensionDemo2 (Service Name Mapped to Extension_Demo2 Database)
------------------------------------------------------
Install-NAVApp -Name CancelOrder -ServerInstance ExtensionDemo2
------------------------------------------------------



The Package will now be available for the users to use in Role Tailored Client.

In The Next Article I will clear the doubts that you have if you have completed till here.

You can download the cmdlets from My Skydrive Folder.

SKYDRIVE LINK

File Name - Microsoft Dynamics NAV 2016 - Extensions Demo (Part 3 Publish & Install An Extension)

** Remember you can run these cmdlets without any change if you are following the Folder strucuture and File Name as discussed in the Series of the article.

Hope you like the article. Please put your suggestion or queries as comment to article.

Regards,
+saurav dhyani
saurav-nav.blogspot.com

Comments

Popular posts from this blog

VIEW SERVER STATE permission on SQL Server?

Hi all, Sometime While trying to Login into a database we face an error message as shown below. --------------------------- Microsoft Dynamics NAV Classic --------------------------- You cannot start Microsoft Dynamics NAV Classic because you do not have the VIEW SERVER STATE permission on SQL Server. Contact your system administrator. --------------------------- OK    ---------------------------

RTC Report It is not possible to instantiate the Visual Studio bridge.

Hi all, As a Navision developers I have Multiple Versions of Navision running in single Machine. As discussed Earlier in the post how to run multiple Version of RTC in single machine. So my machine have following details for RTC Versions - NAV 2009 R2    - is installed. NAV 2009 SP1  - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 SP1 IN\ NAV 2009         - is copied at C:\Program Files (x86)\Microsoft Dynamics NAV\60\NAV 6.0 IN\ This approach has been working great for execution of Classic and RTC Clients. However, after installing Dynamics NAV 2009 R2, if i tried to view the Layout for an NAV 2009 SP1 Report i was getting the following error: ---------------------------  Microsoft Dynamics NAV Classic  ---------------------------  It is not possible to instantiate  the Visual Studio bridge.  ---------------------------  OK    --------------------------- After searchi...

NAV 2013 R2 - Cumulative update 12 Released.

Hi all, Please find below the details of  Cumulative Update 12 released for Microsoft Dynamics NAV 2013 R2. Title - Cumulative Update 12 for Microsoft Dynamics NAV 2013 R2 Build No. - 38053 Release Date - October, 2014 Local Version Included - AU, AT, BE, CH, DE, DK, ES, FI, FR, IS, IT, NA, NL, NO, NZ, SE, UK, RU Download Link Note: Implementing this cumulative update will require a database conversion unless you have already implemented update rollup 5.