---
id: change/bcapps/10295
type: change
title: "#10295 #10288 - Always load attachments"
summary: Email retrieval from Outlook now processes inline attachments that were previously skipped because they don't set the `hasAttachments` flag on Graph messages.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit email - outlook api helper
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-11-22T00:57:50.681Z"
  flags: []
generated:
  at: "2026-11-23T00:15:10.597Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: e98908c676e733b5519c84e3cb2eca62ae7aeb03
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/10295
    title: "microsoft/BCApps#10295: #10288 - Always load attachments"
    date: "2026-11-20"
    commit: e98908c676e733b5519c84e3cb2eca62ae7aeb03
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/codeunit/4509
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/ui-how-send-documents-email
      title: Send documents and emails
      label: possibly related
      why: Email sending with attachments from Business Central documents
      by: model
    - to: https://learn.microsoft.com/dynamics365/business-central/work-outlook-addin
      title: Use Business Central in Microsoft Outlook
      label: possibly related
      why: Outlook add-in handles attachments and file management in Outlook integration
      by: model
number: 10295
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/10295
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-20T10:10:28Z"
author: g-Bergsma
author_type: User
community_contribution: true
labels:
  - "ADO: Sync"
  - "AL: Apps (W1)"
  - From Fork
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 217
  deletions: 6
  al: 1
apps:
  - Email - Outlook REST API
objects_touched:
  - key: codeunit/4509
    page: codeunit/4509
    type: codeunit
    id: 4509
    name: Email - Outlook API Helper
    app: Email - Outlook REST API
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues:
  - 10288
work_items:
  - 659677
systems:
  - platform
quote: null
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #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.

[Pull request](https://github.com/microsoft/BCApps/pull/10295) · 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 `hasAttachments` gate that prevented processing of inline-only attachments
- Attachments are now always processed when present in the response, with inline/regular distinction applied via `isInline` and `contentId`
- Backfills previously retrieved emails with inline attachments when Load Attachments is enabled later
- No extra Graph API calls; uses existing `$expand=attachments` when enabled
- Duplicate prevention and message tracking behavior preserved
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 4509 "Email - Outlook API Helper"](../../objects/codeunit/4509.md), Email - Outlook REST API: modified

## Context

- Fixes: [#10288 [Bug]: Inline-only email attachments are skipped because `hasAttachments` is used as a fetch gate](https://github.com/microsoft/BCApps/issues/10288) (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](https://learn.microsoft.com/dynamics365/business-central/ui-how-send-documents-email) — possibly related: Email sending with attachments from Business Central documents (model-linked)
- [Use Business Central in Microsoft Outlook](https://learn.microsoft.com/dynamics365/business-central/work-outlook-addin) — 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).
