Browsed by
Tag: API

Uploading a file from MSDyn365BC as “multipart/form-data” message

Uploading a file from MSDyn365BC as “multipart/form-data” message

Yes, uploading a file from Microsoft Dynamics 365 Business Central to a Web API sounds easy because Microsoft AL provides all these new and cool objects like JsonObject, HttpRequest, HttpResponse and HttpClient. But sometimes the devil is in the detail…“How-to setup the corret HttpRequest message with all the needed HttpHeaders and how-to add the file content?” Swagger “Web API” Definition Good news, my Web API provide a Swagger definition. Now I see what is needed. Swagger-UI visualization display the API…

Read More Read More

Upload files into your Azure Storage with Dynamics 365 Business Central

Upload files into your Azure Storage with Dynamics 365 Business Central

This open source library uses the Azure Blob Service from Microsoft Dynamics 365 Business Central to access your storage account, containers and blobs. See also here: Blob Service REST API Disclaimer: …please keep in mind, this example does not cover every aspects and is provided “AS IS”. Feel free to improve, contribute, use this API as an inspiration or contact me, if you have some ideas 😉 Authentication In each scenario, authentication is in my opinion the hardest challenge. Azure Blob Service API is an important service…

Read More Read More

IoT C2D Messages from Dynamics 365 Business Central

IoT C2D Messages from Dynamics 365 Business Central

My example invoke an Azure IoT Hub Device Method from Microsoft Dynamics 365 Business Central. Required information to send a message to from IoT Hub to the IoT Device endpoint are: IoT Hub Uri IoT Device Id IoT Hub SaS Token for authorization A device method will be invoked by calling the method on the Device Twin by using this Url: (API Documentation – Invoke Device Method) The message content is Json. Key methodName specify the called method and payload contains the data (parameters) for…

Read More Read More

A MSDyn365BC API for Azure IoT Hub API

A MSDyn365BC API for Azure IoT Hub API

IoT is an important part of our current technology. With Azure IoT Hub we are able to start as quick as possible. This platform allows to connect, configure and manage IoT Devices, IoT Edge Devices, Device Twins, Configurations and much more. My example show the integration of IoT Hub functionality in Microsoft Dynamics 365 Business Central by using the IoT Hub Rest API. Well you might do this in CAL or C/Side, but I want to show the future and with MSDyn365BC I use the new…

Read More Read More