hi
it is possible to read a CSV file from Azure Blob and create a general journal in Business Central using the BC Standard API.
There are different ways to achieve this, and it may depend on your specific requirements and setup. However, here are some general steps and resources that could be helpful:
Use Azure Logic Apps or Azure Functions to trigger the process when a new CSV file is uploaded to the Azure Blob Storage. You can use the Blob Storage connector to interact with the storage.
Parse the CSV file to extract the data you need. You can use a CSV connector or a custom code.
Use the Business Central Standard API to create the general journal entry. You can use the HTTP connector in Azure Logic Apps or the HTTP-triggered Azure Functions to send requests to the API.
Map the CSV data to the general journal fields and lines, following the API specifications. You may need to create the necessary accounts, dimensions, and other entities in Business Central beforehand.
Here are some resources that could be useful to implement these steps:
Microsoft Docs provides guidance and examples on how to use the Azure Blob Storage, Logic Apps, Functions, and other Azure services:
docs.microsoft.com/.../storage-quickstart-blobs-portal
docs.microsoft.com/.../connectors-create-api-azure-function
docs.microsoft.com/.../functions-create-your-first-function-visual-studio
docs.microsoft.com/.../
Microsoft provides an API reference for Business Central, including the endpoints and entities used to manage general journals:
docs.microsoft.com/.../entity-generaljournalentry
There are various examples and tutorials available online that show how to use the Business Central API from different platforms and languages, such as:
community.dynamics.com/.../working-with-the-business-central-api-from-microsoft-power-automate
github.com/.../Program.cs
devblogs.microsoft.com/.../
By combining these resources and adapting them to your specific needs, you should be able to read a CSV file from Azure Blob and create a general journal in Business Central using the BC Standard API.
DAniele