Connect Microsoft Dynamics 365 BC (D365 BC) On-premises To Visual Code Editor

Connect D365 BC On-premises To Visual Code Editor:

Step-01: 

Step-02:

  • After VS Code installation. Open Visual Studio Code editor.
open vs code

Step-03:

  • 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!
Command Palette

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.
document path

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”.
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.
launch json

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.
check connectivity

Step-08:

  • For resolving the above issue. We can download >AL: Download Symbols from the Command Palette (Ctrl + G).
al symbol

Step-09:

  • After successfully download AL Symbols, HelloWorld.al file is compiled.
file 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.

Keyboard Shortcuts for Visual Studio Code?

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-keyboard-shortcuts

No Responses to “Connect Microsoft Dynamics 365 BC (D365 BC) On-premises To Visual Code Editor”

Leave a Reply