Dynamics 365 Business Central
Category
Aug 21, 2024
Published date
Text
Article Type
AI Summary
- AL developers in Business Central can now manage multiple file uploads simultaneously using the AllowMultipleFiles property.
- The AllowMultipleFiles property allows for the configuration of the FileUploadAction to accept either a single file or multiple files at once.
- Developers can specify acceptable file types using the AllowedFileExtensions property to enhance the efficiency and user-friendliness of the file upload process.
- The article references the Handle Multiple File Uploads configuration in Business Central.
- A page extension example is provided, extending the "Resource Card" Page to display uploaded files in a new list part.
- Key components of the File Upload Action include setting AllowMultipleFiles to true for multiple file selection and specifying AllowedFileExtensions for file type restrictions.
- The OnAction Trigger manages file processing by retrieving entry numbers, reading file content, and inserting details into the "Uploaded Files New" table.
- The "Uploaded Files New" table stores metadata and content of uploaded files, including entry number, resource number, file name, and file content. The "Uploaded Files List" page displays uploaded files in a list format for easy viewing and management.
Registered users can view the full text for FREE!
Sign In Now!