#10295 #10288 - Always load attachments
Email retrieval from Outlook now processes inline attachments that were previously skipped because they don't set the `hasAttachments` flag on Graph messages.
- 4files
- 1AL files
- 1objects
Pull request · merged into main (BC30) on 2026-11-20 by g-Bergsma (community contribution) · 4 files (+217 -6), 1 AL · fix · tier official · reviewed (checked by Opus)
What changed
- Removes the
hasAttachmentsgate that prevented processing of inline-only attachments - Attachments are now always processed when present in the response, with inline/regular distinction applied via
isInlineandcontentId - Backfills previously retrieved emails with inline attachments when Load Attachments is enabled later
- No extra Graph API calls; uses existing
$expand=attachmentswhen enabled - Duplicate prevention and message tracking behavior preserved
- Behaviour changes for users or extensions.
AL objects touched
- Codeunit 4509 “Email - Outlook API Helper”, Email - Outlook REST API: modified
Context
- Fixes: #10288 [Bug]: Inline-only email attachments are skipped because
hasAttachmentsis used as a fetch gate (closed) - Work items: AB#659677
- Labels: ADO: Sync, AL: Apps (W1), From Fork, Team: Integrations
- Systems: platform
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Send documents and emails — possibly related: Email sending with attachments from Business Central documents (model-linked)
- Use Business Central in Microsoft Outlook — possibly related: Outlook add-in handles attachments and file management in Outlook integration (model-linked)
Source: metadata of a merged pull request in microsoft/BCApps (bcapps): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).