Table of Contents
Connect D365 BC On-premises To Visual Code Editor:
Step-01:
- Download the Visual Studio Code from the below link.
- https://code.visualstudio.com/download
Step-02:
- After VS Code installation. Open Visual Studio Code editor.
Step-03:
- Now use the shortcut key Ctrl + P to open Command Palette.
- In the Command Palette type: >AL, you will find the command AL: Go!
- Click on AL: Go!
Step-04:
- By default system will create a folder in your “Document Path”.
- You can change the path or folder name according to your preferences or remain as it is.
Step-05:
- Now SampleExtension folder is created.
- Then select the server as shown in the below screenshot. It depends upon the situation where the VS code connects. In this step, we used “Your Own Server”.
Step-06:
- After selecting Your Own Server, hit the enter button.
- It will create launch.json file.
- Depends upon your D365 BC services, you can set parameters.
Step-07:
- After setting the parameters, now we have to check the connectivity of the visual code editor with D365 BC.
- In order to check it, we can compile the default HelloWorld.al.
- If it shows an error, it means it is not connected with D365 BC.
Step-08:
- For resolving the above issue. We can download >AL: Download Symbols from the Command Palette (Ctrl + G).
Step-09:
- After successfully download AL Symbols, HelloWorld.al file is compiled.
References:
What is AL?
AL is the programming language that is used for manipulating data (such as retrieving, inserting, and modifying records) in a Dynamics 365 Business Central database, and controlling the execution of the various application objects, such as pages, reports, or codeunits.