Business Central 2025 wave 2 (BC27): Support for new ExtendedDataType value: Document (display/preview a PDF as a portrait image in FactBox)
Business Central 2025 wave 2 introduces a new ExtendedDataType value called Document for Media and MediaSet fields, enabling portrait-oriented content like PDFs to be displayed in FactBoxes on ListPart and CardPart pages. The feature requires image conversion and currently supports only the first page of multi-page PDFs due to a bug.

post Dynamics 365 Lab
"Using the Media or MediaSet data type provides better performance than using a BLOB data type and is more flexible in its design"
Key points
- Document ExtendedDataType value supports Media and MediaSet fields on ListPart and CardPart page types only
- PDFs must be converted to images before storage, using codeunit 3110 PDF Document for conversion
- Current limitation restricts display to the first page of multi-page PDFs (bug under Microsoft review)
- Media data type provides better performance than BLOB for caching and rendering in the UI
Quotes
- “Using the Media or MediaSet data type provides better performance than using a BLOB data type and is more flexible in its design” (Justifies when to use Media over BLOB for storing and displaying content)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
- codeunit 3110 “PDF Document”
- page “Customer PDF Preview”
- other “CustomerCardExt”
- other “CustomerExt”
Not found in BC28-30: page “Customer PDF Preview”.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Dynamics 365 Business Central: How to get the page number of a PDF or Word file in AL (Display the page count on Attached Documents and Doc. Attachment List Factbox) — possibly related: both name Codeunit 3110 “PDF Document”
- Dynamics 365 Business Central: previewing PDF files in web client using the new ExtendedDataType = Document. — possibly related: both name Codeunit 3110 “PDF Document”
Heads up
- gotcha: “If you only save the format as pdf, the following error will be displayed regardless of whether you specify Mimetype.” (about version BC27)
Context
- Features: Document ExtendedDataType value, Media field rendering in FactBoxes, PDF to image conversion, Portrait image display, CardPart and ListPart page support
- Versions: BC27, 2025 wave 2, AL Language 16.0
Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.