Hi Guys,
In this blog we will see how we can define .NET variables in Microsoft Dynamics 365 Business Central.
NOTE:- .NET Interoperability is only available on-premise. If you want to use this functionality, you must set the "target": "OnPrem"
in the app.json
file. For more information, see JSON Files.
Alternatively you can use services such as Azure Functions to call into .NET dlls from AL, which will also work online. For online training, see Use Azure Functions with Dynamics 365 Business Central.
By default, compiler only knows about the location of the mscorlib assembly. By following step we can define any compatible assembly by providing the compiler with a path to the assembly's containing folder:
Step-(1) Open Visual Studio Code and then go to Settings and search for Assembly Probing Paths to define referenced .NET assemblies:
"al.assemblyProbingPaths": [
"./.netpackages",
"c:/Windows/assembly/",
"C:/Program Files/Microsoft Dynamics 365 Business Central\140\Service\Add-ins"
],
Note :- Add Items Without double quotes " " as shown below:
Make Sure in app.json value for target property should be "OnPrem" to use .Net assemblies and Download the Symbols again after completing this process.
I Hope this will help you.
Thanks for Reading!!
Awesome thanks, please also share write something, how to use DotNet variable in SaaS cloud environment? What are the possibilities and how to achieve it.
ReplyDeleteThanks in Advance!
Thanks Tabrez !! Sure i will try for SaaS Cloud environment also.
ReplyDelete