Dynamics 365 Business Central: Handling multiple file uploads

Hi Readers,

In this article we will talk about uploading multiple files in Business Central 2024 Release Wave 1.

Managing a single file at a time can be cumbersome and time-consuming, especially when dealing with large volumes of documents. Whether you’re handling invoices, purchase orders, contracts, or other critical business documents, having the ability to upload multiple files simultaneously can save time and reduce the risk of errors.

Handling multiple file uploads in Microsoft Dynamics 365 Business Central offers numerous advantages, from enhanced efficiency and accuracy to improved collaboration and cost savings.

In Business central, developers can now handle multiple file upload in one go using a specific action property.

Developers can use FileUploadAction action’s AllowMultipleFiles property to identify if the action can handle single or multiple files.

AllowedFileExtensions is a property used in Business Central to specify which file types are permitted for upload or attachment. This feature is important for controlling the types of files that can be added to the system, thereby preventing unwanted or potentially harmful file types.

OnAction trigger in the FileUploadAction property is called with the list of files. Below is the Sample Code.

Clicking on action “Upload multiple files” pops up the below screen.

You can simply drag and drop multiple files.