-
Book Overview & Buying
-
Table Of Contents
Dynamics 365 Business Central Development Quick Start Guide
By :
In the on-premise Microsoft Dynamics NAV world, many integrations with external applications are performed by using DotNet add-ins. The use of DotNet variables in Microsoft Dynamics 365 Business Central in the cloud (SaaS version) is actually not supported.
You can use DotNet variables only if your extension targets the on-premises version of Microsoft Dynamics 365 Business Central. For this, you have to set "target": "Internal" in your app.json file in Visual Studio Code:

A .NET type in the AL language is declared in the following way:
dotnet
{
assembly(ASSEMBLY_NAME)
{
type(DOTNET_TYPE; ALIAS){}
}
}In preceding code, we can see the following:
ASSEMBLY_NAME is the name of the assembly to referenceDOTNET_TYPE is the .NET type to reference in the selected assembly (fully qualified name)ALIAS is an alias used to reference the .NET type from the AL codeWhen using DotNet from AL, you need to provide to Visual Studio Code, and to the AL compiler, the paths on...