---
id: change/bcapps/12432
type: change
title: "#12432 [AB#647643] Retain remote files and safely retire verified local references"
summary: "Follow-up to the external storage retention fix that was already merged in #11733. Adds regression tests for quote posting, Copy/Move and retirement guards, updates the configuration guidance, shows retention status on the Document Attachment - External page, and removes unused deletion telemetry."
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - codeunit da external storage impl.
  - page document attachment - external
  - codeunit da feature telemetry
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:12.415Z"
  flags: []
generated:
  at: "2026-11-25T00:13:20.045Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 014be6ed8f5f1956716108faca2f32ff7ae00e5e
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12432
    title: "microsoft/BCApps#12432: [AB#647643] Retain remote files and safely retire verified local references"
    date: "2026-10-14"
    commit: 014be6ed8f5f1956716108faca2f32ff7ae00e5e
    t: null
    quote: The accepted fix retains remote files instead of deleting them.
links:
  learn: []
  objects:
    - object/codeunit/8751
    - object/page/8751
    - object/codeunit/8754
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/across-store-document-attachments-externally
      title: Store Document Attachments in External File Storage
      label: possibly related
      why: Documents external file storage configuration for document attachments reducing database capacity.
      by: model
number: 12432
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12432
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-14T08:59:27Z"
author: JesperSchulz
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - "AL: System Application"
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 8
  additions: 1300
  deletions: 52
  al: 3
apps:
  - External Storage - Document Attachments
objects_touched:
  - key: codeunit/8751
    page: codeunit/8751
    type: codeunit
    id: 8751
    name: DA External Storage Impl.
    app: External Storage - Document Attachments
    status: modified
  - key: page/8751
    page: page/8751
    type: page
    id: 8751
    name: Document Attachment - External
    app: External Storage - Document Attachments
    status: modified
  - key: codeunit/8754
    page: codeunit/8754
    type: codeunit
    id: 8754
    name: DA Feature Telemetry
    app: External Storage - Document Attachments
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 647643
systems:
  - platform
quote: The accepted fix retains remote files instead of deleting them.
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12432 [AB#647643] Retain remote files and safely retire verified local references

> Follow-up to the external storage retention fix that was already merged in #11733. Adds regression tests for quote posting, Copy/Move and retirement guards, updates the configuration guidance, shows retention status on the Document Attachment - External page, and removes unused deletion telemetry.

[Pull request](https://github.com/microsoft/BCApps/pull/12432) · merged into `main` (BC30) on 2026-10-14 by JesperSchulz · 8 files (+1300 -52), 3 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- The core logic that keeps remote files and safely retires local references was already merged in #11733
- Adds a retention-status display to the Document Attachment - External page
- Adds regression tests for quote to order posting, Copy/Move with byte checks, and retirement guards
- Removes unused deletion telemetry and updates the README configuration guidance
- Trade-off: remote files are kept even when unshared, so storage use can grow
- Behaviour changes for users or extensions.

## AL objects touched

- [Codeunit 8751 "DA External Storage Impl."](../../objects/codeunit/8751.md), External Storage - Document Attachments: modified
- [Page 8751 "Document Attachment - External"](../../objects/page/8751.md), External Storage - Document Attachments: modified
- [Codeunit 8754 "DA Feature Telemetry"](../../objects/codeunit/8754.md), External Storage - Document Attachments: modified

## Context

- Work items: AB#647643
- Labels: AL: Apps (W1), AL: System Application, Team: Integrations
- Systems: platform
- From the description: "The accepted fix retains remote files instead of deleting them."

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Store Document Attachments in External File Storage](https://learn.microsoft.com/dynamics365/business-central/across-store-document-attachments-externally) — possibly related: Documents external file storage configuration for document attachments reducing database capacity. (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).
