BeyondERP.Newsletter
Menu

Setup page · Organization administration

Export attachments

A setup page where you list the tables whose attached files and notes you want to export, and then run the export job.

Business process
Manage data
Menu item
DocuExportAttachmentsForm
Main table
DocuExportAttachmentsTable
Show what matters for
PAGE GUIDEWhat the page does and how to use it7 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, if the attachments for a long period are larger than the maximum file size you set, the job splits them into several archive files.
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

Business processManage data
Menu pathOrganization administration › Document management › Export attachments
Set up firstDocument types Microsoft Learn Document management parameters Microsoft Learn
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.

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 meansTable column
Table nameThe table whose attachments are exported.Microsoft Learn
Date field nameThe date field of the table that the export period is applied to.Microsoft Learn
EnabledIncludes the table in the next export job.Microsoft Learn IsEnabled
From dateThe first date of the export period.Microsoft Learn
To dateThe last date of the export period.Microsoft Learn
File typeThe document type used to create the archive of exported attachments.Microsoft Learn
Compression levelHow much the archive is compressed: fastest, none or optimal.Microsoft Learn
Maximum file size in megabytesThe size limit for each archive file in this run.Microsoft Learn
Include metadataWhen set to Yes, notes, URLs and file metadata are exported too, as JSON files.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

Solution architect

4Design impact

Can it be undoneReversible: The table list only controls what the next export job picks up. Clear Enabled or delete a row to leave a table out of the next run. The job doesn't change or remove the original attachments; it adds zip archives as attachments for each enabled table, so delete those archives if you don't want to keep them. Microsoft Learn
Technical architect

5Technical

Menu itemDocuExportAttachmentsForm Checked in Dynamics 365
FormDocuExportAttachmentsForm Checked in Dynamics 365
TableDocuExportAttachmentsTableShown as “Export attachments” in Record infoChecked in Dynamics 365
Actions on the pageOptions: Personalize, Page options, ShareChecked in Dynamics 365
Developer

6Developer

Open it by URLhttps://<your-environment>/?mi=DocuExportAttachmentsForm
Everyone

7Sources