---
id: change/bcapps/12609
type: change
title: "#12609 Confirm before deleting attachments from an unfiltered Doc. Attachment List Factbox"
summary: A confirmation dialog now prevents accidental bulk deletion of attachments when the Doc. Attachment List Factbox loads without its filters due to a platform defect, protecting attachments from other documents.
tier: official
language: en
tags:
  - fix
  - main
  - bc30
  - page doc. attachment list factbox
  - codeunit document attachment mgmt
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-16T01:17:19.363Z"
  flags: []
generated:
  at: "2026-11-11T00:15:47.902Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 2feb540a89764f8df43798627d23e1c47c0be9cc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/12609
    title: "microsoft/BCApps#12609: Confirm before deleting attachments from an unfiltered Doc. Attachment List Factbox"
    date: "2026-10-14"
    commit: 2feb540a89764f8df43798627d23e1c47c0be9cc
    t: null
    quote: null
links:
  learn: []
  objects:
    - object/page/1178
    - object/codeunit/1173
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/ui-how-add-link-to-record
      title: Manage Attachments, Links, and Notes on Cards and Documents
      label: possibly related
      why: Documents managing attachments on records using the Attachments tab in the FactBox pane.
      by: model
number: 12609
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/12609
kind: pr
base_branch: main
major: "30"
merged_at: "2026-10-14T14:48:25Z"
author: darjoo
author_type: User
community_contribution: false
labels:
  - "Team: Integrations"
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 4
  additions: 453
  deletions: 2
  al: 2
apps:
  - Base Application
objects_touched:
  - key: page/1178
    page: page/1178
    type: page
    id: 1178
    name: Doc. Attachment List Factbox
    app: Base Application
    status: modified
  - key: codeunit/1173
    page: codeunit/1173
    type: codeunit
    id: 1173
    name: Document Attachment Mgmt
    app: Base Application
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 653614
systems:
  - platform
quote: null
joined_against:
  major: "30"
  commit: f18567dc08e2bd162bf192e1da4d714b57eb099f
---

# #12609 Confirm before deleting attachments from an unfiltered Doc. Attachment List Factbox

> A confirmation dialog now prevents accidental bulk deletion of attachments when the Doc. Attachment List Factbox loads without its filters due to a platform defect, protecting attachments from other documents.

[Pull request](https://github.com/microsoft/BCApps/pull/12609) · merged into `main` (BC30) on 2026-10-14 by darjoo · 4 files (+453 -2), 2 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Adds OnDeleteRecord confirmation that triggers only when the factbox is completely unfiltered
- Stores selected record SystemIds in a list to confirm only on the first record of a bulk delete operation
- Unfiltered state is detected by checking all filter groups (0-255) for absence of filters
- Confirmation defaults to No, requiring explicit user approval to delete from an unfiltered list
- Normal filtered delete behavior and GuiAllowed false scenarios remain unchanged
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 1178 "Doc. Attachment List Factbox"](../../objects/page/1178.md), Base Application: modified
- [Codeunit 1173 "Document Attachment Mgmt"](../../objects/codeunit/1173.md), Base Application: modified

## Context

- Work items: AB#653614
- Labels: 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.

- [Manage Attachments, Links, and Notes on Cards and Documents](https://learn.microsoft.com/dynamics365/business-central/ui-how-add-link-to-record) — possibly related: Documents managing attachments on records using the Attachments tab in the FactBox pane. (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).
