Set up static documents

Static documents are pre-uploaded files that can be included in document merges through rules. Use them for content that remains the same across many documents, such as terms and conditions, marketing brochures, or compliance certificates.

Open the static documents list

Choose the Search icon (Alt+Q), enter Doc. Merge Static Documents, and then choose the related link.

Alternatively, open the Doc. Merge Setup page and choose the Static Documents action.

Static documents list

Upload a static document

  1. On the Doc. Merge Static Documents page, choose New.

  2. Enter a Code (for example, TERMS-EN or BROCHURE-2024) and a Description.

  3. Choose the Import Document action.

  4. Select the file from your computer. Supported file types include PDF.

  5. The File Name and File Extension fields are filled automatically.

Static document card

Configure validity dates

You can optionally restrict when a static document is included in merges by setting validity dates:

Field

Description

Valid From

The earliest date from which the document is valid. Leave blank for no start restriction.

Valid To

The latest date until which the document is valid. Leave blank for no end restriction.

Date Comparison Type

Determines which date to compare against the validity period.

Date comparison types

Option

Description

Work Date

Compares against the current Business Central work date (WORKDATE).

Today

Compares against the current system date.

Posting Date

Compares against the posting date of the document being printed.

Document Date

Compares against the document date of the document being printed.

Tip Use validity dates to manage document versions. For example, create TERMS-2025 valid from January 1, 2025, and TERMS-2026 valid from January 1, 2026. The correct version is automatically included based on the document date.

Language support

Use the Language Code field to specify a language for the static document. This allows you to maintain multiple language versions of the same content (for example, TERMS-EN for English and TERMS-DE for German).

Use static documents in rules

To include a static document in your merge composition, create a global rule or partner rule with:

  • Source Type = Static Document

  • Static Document Code = the code of the document to include

Export a static document

To download a previously uploaded file:

  1. Open the static document card.

  2. Choose the Export Document action.

  3. Save the file to your computer.