Webinar Video and Q&A: Developing with JavaScript for Dynamics 365 BC

Justina Žiūraitė

Marketing Manager

Topic: Webinars

Date: 12 Dec 2019

Thank you for attending our webinar: Developing with JavaScript for Dynamics 365 BC.

The webinar overviewed these practices and steps:

1. Adding control add-in
Add control add-in to the page and set up the necessary setup.
2. Invoking events
JavaScript lets us modify Dynamics 365 Business Central page – modify the page to create on load event – message.
3. Factbox control add-in
Create a factbox-control add-in page in order to add it to any page.
4. Embedding customer‘s Home page to FactBox
Improve our add-in with the customer’s home page. This shows how to transfer information from NAV to Javascript.
5. Managing add-in with NAV actions
Not wanting to load the page on every customer? Let’s create an action for loading it.
6. Managing add-in with Javascript Buttons
Let’s go even further – auto-create buttons in control add-in to load our webpage. This part shows how to create buttons to communicate back to Navision.

Developing with JavaScript for Dynamics 365 BC

Please find all questions and answers below

Q: Can JavaScript be done in a Cloud version?

A: Yes, it can. Actually, JavaScript replaces .net in a Cloud version.


Q: Is there any CSS that would help to look like buttons in NAV?

A: You have to search for it. Just enter ‘Business Central CSS guidelines’ and you can find plenty of examples.


Q: Is it possible to change the appearance of the standard NAV controls?

A: Now, no. You can only manage what is inside of your control add-in. Everything outside these values is not accessible and you can’t manage it.


Q: Can user input data be returned from control add-in?

A: Yes, it would be in a similar manner as creating a button callBack, but you would need to create form (or other HTML means to do that) object.


Q: Can we use frameworks like the knockout, angular?

A: Yes, you can do that.


Q: Are there any licensing restrictions on control add-ins?

A:  Not that I am aware of.


Q: Do you have to install JavaScript language in VS Code to be able to create JS script?

A: No, there is no need for the installation.


Q: Can we use JS as ping pong in old NAV?

A: Yes, you can do that. You just create a loop of calling back and forth to NAV. Also, you need to create a delay period, and you need to do that in HTML modification, but it’s completely possible.



Q: Can we use external CSS files like bootstrap?

A: Yes, it should be possible. You just have to provide the correct links to it on the control add-in setup.


Q: Is there a possibility to access data from other records (for example Setup) from within JS by using callback or something like that?

A: Yes, you can do that. If you look at the code, you can see that here you can create additional fields, options, data, buttons, etc. Also, you can create a full communication between JS, control add-in and NAV.


Q: How to control the order and position of the object in the control?

A: Please check HTML guidelines on that. You should be able to find a lot of information on this topic.


Q: Can we debug the JS code?

A: No, we can’t debug it, but we can investigate how it’s created. If you go to ‘More tools’ -> ‘Developer tools’, you can check how it’s created and you can inspect every element. But for now, Business Central NAV doesn’t allow you to debug it.


Please find the project shared during the webinar in the GIT repository here.

Feeling that webinar wasn’t enough for you and want to know more about this or any other Extensions topic? We provide Dynamics 365 Business Central Extensions Training course, which is always adjusted according to individual partner requirements, professional experience, and skills.





Dynamics 365 Business Central Extensions Training

Please complete the form below if you would like Simplanova representative to contact you regarding Dynamics 365 Business Extensions Training for your company.