code change · featureAL Developmentofficial - Microsoftreviewed - checked by Opus

#290 Attachment cleanup by document type

Quality guidance added for Business Central 29 on scoping attachment cleanup by document type in sales headers, since quotes and orders can share the same number.

Pull request · merged into main on 2026-11-30 by fernandoartalf · 5 files (+68 -3), 4 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • New quality rule guidance for BC 29 addressing attachment cleanup scope
  • Clarifies that filtering by only table ID and number can inadvertently delete another document’s attachments
  • Provides good and bad code examples with documented exceptions for intentional cross-type cleanup
  • Updates review routing and test fixture coverage
  • References attachment management and external storage sources

AL objects touched

Context

  • Systems: development
  • From the description: “A quote and an order can share a number, so filtering only by table ID and number can delete another document’s attachments.”

Source: metadata of a merged pull request in microsoft/BCQuality (bcquality): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).