Version 10.0.49: the menu item, form, table and security, the page.
Recommended values
Based on Microsoft's documentation. A sound starting point to adjust to your own business requirements.
Tests
A ready-to-run test, “Customer invoice attachments are exported for one month”, to confirm this setup in your own test environment.
Show what matters for
SETUP GUIDEHow to set it up8 sections. Choose a role to highlight what matters to you.
Everyone
1What it is and why
What it is
A setup page where you list the tables whose attached files and notes you want to export, and then run the export job.
What you do here
Use this page to pick tables and a date field, then run a job that packs their attachments for a period into zip archives.
Example
For example, BEAT exports the 2023 attachments of customer invoices: table CustInvoiceJour, date field InvoiceDate, from 1/1/2023 to 12/31/2023, with a 90 MB limit, so the job splits anything over 90 MB into several zip files on the table's attachments.
The page in Dynamics 365. page title tab to open what to set or check
About the examples: Examples and screenshots in this guide use BEAT, a demo company in a Dynamics 365 test environment. Use your own company's codes and values instead of copying them.
Setup steps on this page
Export attachments
List the tables whose attachments you need, then export them for a period into zip archives.
Steps from Microsoft
Go to Organization administration > Document management > Export attachments.
Select New and choose a table to export attachments for; repeat for each table.
For each table, choose the Date field name and select Enabled.
Select Export to open the Export attachments dialog box.
Enter the From date and To date of the period.
Choose the File type, Compression level and Maximum file size in megabytes.
Set Include metadata to Yes to also export notes, URLs and file metadata.
On the Run in the background FastTab, set Batch processing to Yes and fill in the batch settings.
The document type used to create the archive of exported attachments.Microsoft Learn
File
Compression level
How much the archive is compressed: fastest, none or optimal.Microsoft Learn
Optimal
Maximum file size in megabytes
The size limit for each archive file in this run.Microsoft Learn
90
Include metadata
When set to Yes, notes, URLs and file metadata are exported too, as JSON files.Microsoft Learn
Yes
Common errors and fixes
Message
What to do
Notes and URLs are missing from the exported archive
Set Include metadata to Yes. With No, only attachments of the File type are exported, without metadata. Microsoft Learn
The export ends with several zip files instead of one
This is expected when the archive is larger than the Maximum file size in megabytes of the run; raise the limit for the run if you need fewer files, keeping in mind that a large value can slow the job. Microsoft Learn
Test checklist
Add a row for CustInvoiceJour with Date field name InvoiceDate and select Enabled.
Select Export, set From date and To date to a month that has invoice attachments, File type File, Compression level Optimal, Include metadata Yes, and run it in batch.
When the batch job ends, open the attachments for the table and check for a zip named in the format LE_TableName_DateFieldName_Period_SeqNum.zip.
Open the zip and check that files are named RecID_AttachmentName_AttachmentDate_SeqNum and that Note and URL attachments appear as JSON metadata files.
Run it again with a low Maximum file size in megabytes and check that the archive is split into several files.
One row per table with the date field that matches the period you report on, File type File, Compression level Optimal and Include metadata Yes, run in batchThe job applies the From date and To date to each table's date field, and only Include metadata Yes exports notes, URLs and file metadata as JSON files.
Per company: the job exports attachments for the legal entity where you run it. Microsoft Learn
Can it be undone
Reversible: The job doesn't change the original attachments. It adds zip archives as attachments, which you can delete if you don't keep them.
If you change it later
The job adds zip archives as attachments of each enabled table, named LE_TableName_DateFieldName_Period_SeqNum.zip, and splits the archive when it is larger than the Maximum file size in megabytes of the run. A large size limit can slow the job down. Microsoft Learn
Technical architect
6Technical
Menu item
DocuExportAttachmentsFormChecked in Dynamics 365
Form
DocuExportAttachmentsFormChecked in Dynamics 365
Table
DocuExportAttachmentsTableShown as “Export attachments” in Record infoChecked in Dynamics 365
Data entities
DocuExportAttachmentsTableEntityExport attachments (only the table list on this page; the period, file type and size limit are entered each time you run the export)
Who can open it
1 security role.
No privilege grants this menu item, so no duty or privilege can give access to it. Only the System administrator role, which is not limited by security, can open it.
RoleSystem administrator-SYSADMIN-
Worked out from Microsoft's standard security definitions (10.0.2790.108), which hold every privilege of the working Dynamics 365 system (10.0.49) but one custom privilege, checked on 2026-11-23
Actions on the page
Options: Personalize, Page options, ShareChecked in Dynamics 365
DocuExportAttachmentsTableEntity (Export attachments): loaded for each company; carries the tables and date fields to export.Load order: Export attachments isn't in Microsoft's default configuration templates. Load it for each company after the document types; the export itself is run on this page.Load first: Document types (the File type used for the archives)Checked in Dynamics 365