code change · fixPurchasing & Payablesofficial - Microsoftreviewed - checked by Opus

#13680 [Excel Reports] Handle an apostrophe in the No. on the Vendor and Customer Top List

Excel reports for top vendor and customer lists now handle apostrophes in account numbers correctly by properly escaping quotes in filter expressions.

Pull request · merged into main (BC30) on 2026-11-20 by Franco111000 (community contribution) · 3 files (+123 -8), 2 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixed NavInvalidFilterExpressionException when vendor or customer numbers contain apostrophes
  • Escape helper now doubles internal quotes and uses Text parameter type instead of Code
  • Single-value buffer lookups converted to SetRange for exact comparison instead of filter parsing
  • Added tests verifying exports with apostrophes at start, middle, and end of account numbers
  • No breaking changes; local helper modification affects only these reports
  • Behaviour changes for users or extensions.

AL objects touched

Context

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

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