Use drag and drop on file upload dialog to attach multiple files
With the Business Central new release BC25, empowering your Business with Intelligent Automation and Seamless Integration, it also enables a great feature which helps you to attach the multiple documents in the attachments using drag & drop dialog.
Drag and drop functionality to attach multiple files to Business Central records makes it easier to manage files. This feature benefits users who work with multiple files and adds value to organizations by enhancing data organization and accessibility.
You can drag multiple files at the same time to attach them to records in Business Central. Select multiple files, and then just drag them to the file upload dialog.
he following pages and actions open a File Upload dialog. You can upload multiple files either by choosing Browse to manually select them or by dragging multiple files to the dialog.
Document Attachments List FactBox page, which is available on many document pages in the Attachments part of the FactBox pane.
Incoming Document Files FactBox page, which is available on pages related to incoming documents.
Email Editor page, which is used to draft and send emails from Business Central.
You can also add the file upload action for your custom pages. let’s see how it works.
1. Create a new page – “DragAndDropPageTest” 2. Add a group within the layout content and set property “FileUploadAction = ProductImageUpload;“ 3. Add a page action under defined area with keyword “fileUploadAction(ProductImageUpload)”. 4. Now add OnAction trigger for the above action using built in datatype Instream and Outstream as shown in the below image.