With Dynamics 365 Business Central, usage of .NET assemblies (the DotNet variable type) is supported only in an on-premise scenario. With Dynamics 365 Business Central in the cloud (SaaS), you cannot use DotNet objects (for security reasons) and the official way to replace a DotNet variable is by using an HTTP call to an Azure function.
Azure Functions is a serverless compute service offered by the Azure platform that permits you to run code in the cloud without managing the infrastructure. We'll talk about Azure Functions in more depth in Chapter 14, Monitoring, Scaling, and CI/CD with Azure Functions, so here we'll not see how to create an Azure function from scratch, but only how to call it from your extension's code.
Now, imagine having an Azure function called PostCodeValidator that validates post...