Tip of the Week #167 – Getting Started with Extensions V2

Tip of the Week #167 – Getting Started with Extensions V2

Product Developer Rikard Hult brings us this week’s helpful tip.

In Dynamics NAV 2018, Microsoft has introduced a new way of building Extensions.

But how to get it up and running?

  1. Setup the service tier

The Allowed Extension target could be Internal for all installations except Business Central 365 online; This allows us to use functions that are not published as external functions.

In client service section, enter the Web Client Base URL; this should be the webclient address.

2. First, generate the symbols. Run command prompt as admin, change directory to client folder, (typically C:\Program Files (x86)\Microsoft Dynamics NAV\110\RoleTailored Client). Run command finsql.exe Command=generatesymbolreference, Database=”PV2018” ServerName=SQLSERVER

Notice you will not get any response or feedback that it’s running, so check your Task Manager for running processes, looking for command prompt or finsql.exe that uses CPU.

When the processes disappear or stop, then it’s ready. A file should be created in client folder with result navcommandresult.txt

It will take 5-15 minutes.

3. Launch Visual Code.
Add the extension “AL Language.”
You could also add the CRS AL Language Extension which gives you extra cool and handy tools to work with in Visual Code.

4. Hi F1, type AL: Go!, select a folder for the project.
Open .vscode/launch.json and specify your local settings

Open app.json and add
“target”: “Internal”,

  1. Download symbols, hit F1 and type AL: Download Symbols
  2. A small helloworld example was created by default, hit Ctrl+F5 to compile and run it to verify your setup.

Good luck!

Thank you Rikard!