Monday, April 13, 2020

Using dlls or Assembly List in Microsoft Dynamics Navision

Hi Readers,
Today we will talk about how to use dlls efficiently and its importance.
If you are from a .net background you probably know that dlls are nothing but .cs classes. If we talk in NAV terms, dlls are files that has specific code which can be used for a feature.

NAV has predefined function such as SETRANGE, MESSAGE, DATETIME, etc. But what if NAV doesn't have a function you need and the feature will require a lot of custom code to do so, this is when dlls comes in picture. NAV has many
System and Dotnet dlls which have many methods which comes handy. This saves a lot of time for a NAV Developer.

Fun Fact! Business Central AL is an Object Oriented Language and all the standard NAV objects are are in a form of dll.

Use existing dll:

It works the same way as for any other new variable. If you have to make a variable as to use dlls, the only difference is the type. Select Type as DotNet and you are good to go.


Add external dll:

Say you want to create a featire in NAV wherein a Report is perform a text encoding as Base64. In this case, we will have to use an external dll that provides such a feature, since NAV will require a lot of coding and time.

For this scenario, download Base64.dll. Once you have this file, it needs to be added in 3 places for us to use it as any other NAV dll. This is the most crucial part.
1. C:\Program Files\Microsoft Dynamics NAV\110\Service\Add-ins
2. C:\Program Files\Microsoft Dynamics NAV\110\Service
3. Temp of Microsoft Dynamics NAV Addin

Once this is done, you can see your added dll in the Server tab as mentioned below:


Note: The Server Instance should be Stopped and Restarted only after you have dll at the above mentioned places. 

Most common NAV dlls/Assemblies:
System
Automation


Write your  thoughts about this post in the comment section below. You can also suggest what should I write about next!

Write me at jyotsnaoberainav@gmail.com

Please visit my website (JONAV) if you are looking for NAV/D365BC Services.

See you until next time, Thank you!


No comments:

Post a Comment