Dynamics 365 Business Central: How to bulk export/download attachments (Downloading multiple attachments via zip file) – Customization

On most list pages, cards, and documents, you can attach files, add links, and write notes on the Attachments tab of the FactBox pane. The number in the tab title indicates how many attached files, links, or notes exist for the card or document.

Source : Dynamics 365 Lab
Read more…

How to attach from a zip file to a Sales Order in Business Central

Hello, I want to share a little code that allows you to import multiple files in a .zip and attach them to a “Sales Order“.

This process could easily be adjusted to any Business Central list that can upload attachments. (In case the list page doesn’t have them, you would have to first create a little customization before using this code).

If we go to the page code “page 1174 “Document Attachment Factbox” we can check which master tables we could attach files to.

Source : Ivan Singleton
Read more…

Dynamics 365 Business Central: FileManagement.BLOBExport only save last file? -> Adding multiple files into a zip file

Last year, we have discussed how to save the report as a PDF, Excel, Word, HTML, or XML file.
More details: Dynamics 365 Business Central: How to save the report as a PDF, Excel, Word, HTML, or XML file (Report.RunRequestPage Method and Report.SaveAs Method) | Dynamics 365 Lab (yzhums.com)

As you might know, Report.SaveAsPDF() function or Report.SaveAsExcel() function not supported in Business Central Cloud SaaS (Cloud). So I tried to save report in Stream objects then convert to file using BlobExport function.

Source : Dynamics 365 Lab
Read more…