Command Line Syntax

Running NAV Start from a command line is fairly simple. However, there are a couple of things that may be good to know before you start using it.

You may not need to tell the program every thing it needs to know. Just like when you run the RTC the normal way it can use the last used server address and company name without you having to tell it. On the other hand, you can specify a server address and a company name if you want to use a specific configuration. Specifying everything is often a more robust approach than leaving out some of the information.

Command Line Usage

NAVSTART [client="full path of NAV client"] [server="server address"] [company="company name"] page="page number" [table="table number" keytype1="Code|Text|Option|Int|BigInt|Boolean" keyvalue1="key value"]

client

The client parameter is used to specify a specific RTC executable. If the client is not specified then it will try to auto detect the client.

server

This is the address of the Microsoft Dynamics NAV server. Depending on the NAV version the syntax of the server address will look something like this: "localhost:7046/dynamicsnav71".

A default server address will be used if the server parameter is not specified.

company

Default company will be used if the company parameter is not specified.

page

Object number of page to run. For a standard customer card the value of the page parameter should be 21.

table

Table used by the page and for which the primary key is specified. For a standard customer card the value of the table parameter should be 18.

keytype1

Type of first field in the primary key. Valid values are Code, Text, Option, Int, BigInt, and Boolean.

keyvalue1

Value of first field in the primary key.

Option and boolean values are specified numerically. This means that true is written as 1 and false as 0. Option numbers are zero based.

Notes 

Key types and values must be specified for all fields in the primary key. Fields must be listed in the same order as they are defined in the primary key.

Examples 

Ex: Open customer card and show customer 20000.

NAVSTART client="C:\Program Files (x86)\Microsoft Dynamics NAV\71\RoleTailored Client\Microsoft.Dynamics.Nav.Client.exe" server="localhost:7046/dynamicsnav71" company="CRONUS International Ltd." page=21 table=18 keytype1=code keyvalue1="20000"

 More examples are available in the Getting Started section.