Back to Blog DYNAMICS 365

How to Connect your Visual Studio Code with Business Central

17 Jan 2019
Sam Peterson
Sam Peterson
How to Connect your Visual Studio Code with Business Central

In this article, I am going to show how to connect your business central with visual studio code so that you will be able to start your development for Microsoft Dynamics 365 Business Central.

There are two versions of business central available

  • Business Central On-Prem
  • Business Central Online

For both above we need to do some common setup in visual studio code which are as below:

Steps to Connect your Visual Studio Code with Business Central

Step 1. Download and Install Visual Studio Code From the below Link:

https://code.visualstudio.com/download

Step 2. Now open visual studio code and go to extensions

And now search for AL Language and select the below.

Step 3. Now click on install

After Installation restart the visual studio code. Now go to command pellet or press Ctrl+Shift+P run command AL>Go

press Ctrl+Shift+P run command AL srcset=Go!>

After that it will ask you the path where you want to save your project by default it will show you a path you can change it if you want (ALProject4 is project name).

After that, it will ask you whether you want to connect it through Business Central Online or Business Central On-Prem.

If you select Microsoft Cloud sandbox, then you will be asked for your Business Central Online Account user-id and Password:

If you select the second option i.e. “your own server” this option is used for Business Central On-Prem then you have to change some parameter values launch.json file as below:

You can also find the development port from Business Central administrative tool also you must enable the below two settings in the server instance.

After this restart your service.

And run the command AL>Download Symbols

If command executes successfully then you will see the below message in the output window of the visual studio code:

Start your development in AL

Now you are good to go, and you can start your development in AL.

Note: If you are getting some error in downloading symbols then you must check you service port and both options are enabled and you have chosen the right port in Launch.json file, as without downloading the symbols you will not be able to access base objects of business central.

dynamics square

Witness a scalable transformation

Experience real-time synchronisation and flexibility with a consistent view across your business.

Disclaimer– “All data and information provided on this blog is for informational purposes only. Dynamics Square / MPG Business Information Systems Pvt. Ltd. makes no representations as to accuracy, completeness, currentness, suitability, or validity of any information on this site and will not be liable for any errors, omissions, or delays in this information or any losses, injuries, or damages arising from its display or use.”