Hello Readers,
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 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:
Download and
Install Visual Studio Code fromhere.
Now open
visual studio code and go to extensions:
And now
search for AL Language and select the below:
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
After that
it will ask you 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 Log in using credentials:
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:
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 have to check you service port and both options
are enable 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.
This comment has been removed by the author.
ReplyDeleteUseful post for beginners :)
ReplyDelete