BeyondERP.Newsletter
Menu

Setup step on the Export attachments page · Organization administration

Export attachments

List the tables whose attachments you need, then export them for a period into zip archives.

See how to set it up Back to Organization administration

Used by
System administrator
Business process
Administer system features
Menu item
DocuExportAttachmentsForm
Main table
DocuExportAttachmentsTable
Data entity
None for this page's own settings
Setup steps
1 on this page

How this guide was checked

Checked in Dynamics 365
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 isA 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 hereUse this page to pick tables and a date field, then run a job that packs their attachments for a period into zip archives.
ExampleFor 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.
Export attachments page in Dynamics 365
The page in Dynamics 365. page title tab to open what to set or check
Functional consultant · Solution architect

2Where it fits

End user · Functional consultant

3How to do it

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

  1. Go to Organization administration > Document management > Export attachments.
  2. Select New and choose a table to export attachments for; repeat for each table.
  3. For each table, choose the Date field name and select Enabled.
  4. Select Export to open the Export attachments dialog box.
  5. Enter the From date and To date of the period.
  6. Choose the File type, Compression level and Maximum file size in megabytes.
  7. Set Include metadata to Yes to also export notes, URLs and file metadata.
  8. On the Run in the background FastTab, set Batch processing to Yes and fill in the batch settings.
  9. Select OK to start the job.

Source: Microsoft Learn

Fields on the page

FieldWhat it meansExampleTable column
Table nameThe table whose attachments are exported.Microsoft Learn CustInvoiceJour
Date field nameThe date field of the table that the export period is applied to.Microsoft Learn InvoiceDate
EnabledIncludes the table in the next export job.Microsoft Learn YesIsEnabled
From dateThe first date of the export period.Microsoft Learn 1/1/2023
To dateThe last date of the export period.Microsoft Learn 12/31/2023
File typeThe document type used to create the archive of exported attachments.Microsoft Learn File
Compression levelHow much the archive is compressed: fastest, none or optimal.Microsoft Learn Optimal
Maximum file size in megabytesThe size limit for each archive file in this run.Microsoft Learn 90
Include metadataWhen set to Yes, notes, URLs and file metadata are exported too, as JSON files.Microsoft Learn Yes

Common errors and fixes

MessageWhat to do
Notes and URLs are missing from the exported archiveSet 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 oneThis 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

  1. Add a row for CustInvoiceJour with Date field name InvoiceDate and select Enabled.
  2. 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.
  3. 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.
  4. Open the zip and check that files are named RecID_AttachmentName_AttachmentDate_SeqNum and that Note and URL attachments appear as JSON metadata files.
  5. Run it again with a low Maximum file size in megabytes and check that the archive is split into several files.

Source: Microsoft Learn

Functional consultant

4Setup decisions

Setup stepRecommended value and whyDecision, common mistake and test
Export attachmentsOne 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.Which date field should each table use for the export period?Leaving Include metadata at No: only file attachments are exported, so notes and URL attachments are left out of the archive.Test: Customer invoice attachments are exported for one month

Feature management and licence

Licence or add-inExport attachments is part of document management from version 10.0.40. No Feature management feature needs to be turned on for this page.

Microsoft Learn

Solution architect

5Design impact

Shared or per companyPer company: the job exports attachments for the legal entity where you run it. Microsoft Learn
Can it be undoneReversible: 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 laterThe 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 itemDocuExportAttachmentsForm Checked in Dynamics 365
FormDocuExportAttachmentsForm Checked in Dynamics 365
TableDocuExportAttachmentsTableShown as “Export attachments” in Record infoChecked in Dynamics 365
Data entitiesDocuExportAttachmentsTableEntityExport 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 pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

7Developer

Open it by URLhttps://<your-environment>/?mi=DocuExportAttachmentsForm
Data migrationDocuExportAttachmentsTableEntity (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
Everyone

8Sources

To cite this step: OA-DOC-710, Export attachments. Beyond ERP Atlas Hub. https://www.beyonderp.cloud/atlas/step/OA-DOC-710