Import without a user

Watched folders with a job queue, or the API for external systems and Power Automate.

Automatic imports from a folder

Templates can watch a folder: drop the files in a SharePoint, Azure Blob Storage or Azure File Share location and a job queue imports them. Each file is processed on its own, archived when it succeeds and parked with its error when it fails, and every run is recorded in the import history. A webshop that exports its orders or a bank that delivers its statements needs nobody in front of the screen.

Automatic Template Imports list in Business Central: an enabled automatic import with its file account, last run and status Success
The Automatic Template Imports list: the template, its file account, the last run and its status.

The setup is described in the documentation.

The API

Every template can also be run through an API entity of the app, for external systems and Power Automate flows.

Publishermemento
API groupimportTemplate
Versionv1.0
EntityimportTemplates
Endpointhttps://api.businesscentral.dynamics.com/v2.0/{environment}/api/memento/importTemplate/v1.0/companies({company id})/importTemplates
MethodPOST, authenticated like any Business Central API (Microsoft Entra ID)

Request body

FieldRequiredMeaning
importCodeYesThe code of the import template to run.
fileNameYesThe name of the file, kept in the import history and used by duplicate prevention.
base64FileContentYesThe file content in Base64, in the format the template expects (Excel, CSV, fixed length, JSON or XML; ZIP for several files).
templateNameJournalsThe journal template that receives the lines.
batchNameJournalsThe journal batch that receives the lines.
importParametersIf the template asks for parametersAn array of objects with tableId, fieldId and fieldValue, one per import parameter of the template, for example the posting date or the price list code.

The response carries a result field with the outcome of the import and the number of documents or journal lines created.

Power Automate

In the Business Central connector, the action to use is Create Record (V3) with the API category memento/importTemplate/v1.0 and the entity importTemplates. The file content of the trigger is passed to base64FileContent, its name to fileName. Typical triggers: a file on an FTP or SFTP server, an e-mail attachment in a shared mailbox, a record in another system.

The flow does not parse the file and does not know the layout: that stays in the template. Changing a column in the vendor's file means changing the template in Business Central, not the flow.

A Power Automate flow that lists files on an FTP server and runs Import Template for each of them, completed successfully
A flow that imports every file found on an FTP server through the API.

What runs the same way

The API page of the documentation shows the request, the response and a Power Automate flow reading files from an FTP server, step by step.

Import Data Templates is available on Microsoft AppSource with a one-month free trial. Licenses are assigned per user in the Microsoft 365 admin center.