Starting Navision from another application

From Navision 3.xx it is possible to use a kind of protocol for starting / calling a Navision Client.

The syntax for starting a Navision Client is:

navision://client/run

A call like this, in a browser, would start or activate a Navision Client. This call thou would prompt the user for login, password etc. So to simplify the user interaction, it is also possible to pass on some parameters.

Possible parameters are:

company The company that should be open when starting the Navision Client
database Database Name
servername Server Name for the server you wants to connect to
servertype Is it a native or mssql server?
target Which object has to be activated. Ex. a Form18 – the syntax is [objecttype][objectno]
view View (Filters) for the object, that will be activated with the target property

A complete url call could look like this:

navision://client/run?servername=myserver&
………………………database=mydb&
………………………company=mycompany&
………………………servertype=mssql&
………………………target=Form18&
………………………view=SORTING(No.) WHERE (No.=FILTER(132))

Remember when using a Navision protocol, it would be an advantage using windows authentification (windows login) for Navision – else your users would be prompted for username/password. Alternative you have to make sure, that a client already is running, before using the protocol.

You can leave a response, or trackback from your own site.

4 Responses to “Starting Navision from another application”

  1. Walter Mason says:

    Is it possible to call the navision protocol from DOS. I tried it and I am not getting it to work.

  2. iby says:

    Yes and No – it depends on how you want to use it.

    If you expect just to write: c:\>navision:://client/run in the DOS prompt it would not work.

    But (and here comes the yes part) – it is possible with a little trick. Simply add the call to explorer, so that you would write
    …….explorer “navision:://client/run…” in the DOS prompt.

    If you specify a view – then remember to use quotation (") around the Navision protocol or else DOS will interpret it as several DOS command statements.

  3. KattyBlackyard says:

    Great post! I’ll subscribe right now wth my feedreader software!

  4. Working for Google says:

    Thanks very much for the info, I can finally say I’ve read something worthwhile.

Leave a Reply


4 × three =