This is one of the more specific posts about API authentication in Business Central. But probably someone could use the snippets for his own implementation. Right now we’re implementing the payment API of PAYONE for one of our customers. This provider needs the API request headers and additional information to be hashed using HMAC256 and […]
In a recent customer installation we ran into an error “Required IIS module AspNetCoreModuleV2 missing” when trying to install the WebClient components in the Dynamics 365 Business Central version 22 setup. A manual installation using New-NAVWebServerInstance wasn’t successful aswell. The server was a fully patched Windows Server 2022. Although the installation of the prerequisites didn’t […]
This is a minimalist way to access the Business Central API in Python using the Service 2 Service authentication (Client_Credentials). It is based on the Microsoft Authentication Library for Python: In the first step, we create a function to obtain a fresh token: Now you could, for example, get all companies with a couple of […]
At the moment we receive more and more requests that the printer selection in NAV/BC does not work as expected anymore as it always resets to the default printer. It seems that Microsoft has changed the default printer dialog with the update to Windows 11, Version 22H2. Presumably the problem will be fixed with another […]
In my daily work I often encounter interfaces and web services of any kind. Whether inbound or outbound, they usually use some kind of payload in the form of JSON these days. No matter if it’s the outgoing object or the response of the web service. Since I fundamentally implement strong logging in my extensions, […]
As most of you know, OData (and probably several other implementations) use server-driven pagination to load the data incrementally and improve the response times. This means if you have a big result set, the server will tell you how to aquire the next page of results. Here you find a small AL pattern to loop […]
This is a short one. Recently we’ve had to build up a new infrastructure at one of our customers. After setting up Business Central and installing the Webclient I faced a problem switching it to SSL using a domain validated certificate. Although Internet Explorer accepted the certificate without a doubt, Microsoft Edge constantly threw the […]
UPDATE: 16.03.22 – The fix is supposed to be rolled out currently. UPDATE: 17.03.22 – Problems seem to be solved in all regions. Currently, there is a confirmed platform issue between Azure Key Vaults and Business Central at Microsoft. Extensions that rely on key vaults receive an error message that the vault cannot be initialized: […]
In a current API connection in a customer project I have just dealt with the topic of API request logging again. I had already built a small prototype that allows logging via webservice. But it is much easier than that. Namely by using background sessions. This can persist the information despite hard errors in the […]
With deprecation of the good old basic authentication in Business Central SaaS versions we had to deal with the more complex OAuth authentication flows when we wanted to connect external services to our Business Central REST API. Luckily, Microsoft has provided us with a great and similarly simple option as Basic Auth, the Service to […]