Connect D365 BC On-premises To Visual Code Editor:
- Download the Visual Studio Code from the below link.
- After VS Code installation. Open Visual Studio Code editor.
- Now use the shortcut key Ctrl + G to open Command Palette.
- In the Command Palette type: >AL, you will find the command AL: Go!
- Click on AL: Go!
- 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.
- 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”.
- 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.
- 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.
- For resolving the above issue. We can download >AL: Download Symbols from the Command Palette (Ctrl + G).
- After successfully download AL Symbols, HelloWorld.al file is compiled.
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.