In a number of scenarios, you may want to load and import a configuration package without involving your users or using the RapidStart Services user interface. You can do so by using a Microsoft Dynamics NAV Windows PowerShell cmdlet. Scenarios where this may be useful include:

To deploy a configuration package using a cmdlet

  1. Prepare a RapidStart Services package. For example, you can create a package to import certain values and the names of the table and the fields to insert these values into.

  2. Place the package on a computer where you will run the cmdlet.

  3. Open the Microsoft Dynamics NAV 2013 R2 Administration Shell.

  4. Enter Invoke-NAVCodeUnit, and specify information similar to the following example.

     Copy Code
    Invoke-NAVCodeunit -Tenant Default -CompanyName "CRONUS International Ltd." -CodeunitId 8620 -MethodName ImportRapidStartPackage -Argument "C:\TEMP\RS_CONFIG.rapidstart" -ServerInstance DynamicsNAV71 
    

    The cmdlet imports the package into each company.

Users can start to use the new functionality immediately.

Tip

See Also