.NET variables and add-ins
If your existing code uses .NET variables, these objects are not supported in a SaaS environment. If you want to use .NET on SaaS, you need to wrap your DLLs (or your .NET code) into an Azure function and call that function from your AL code. Chapter 6, Advanced AL Development, and Chapter 13, Serverless Business Processes with Business Central and Azure, show you how to handle these situations.
If your extension targets the on-premise world (Target = Internal in the app.json file), then you can use .NET assemblies in your AL code (but this code can never be moved into a SaaS environment). More information on how to use .NET variables in AL for the on-premise world can be found at https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-get-started-call-dotnet-from-al ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access