code change · fixCopilot & Agentsofficial - Microsoftreviewed - checked by Opus

#13460 [Master] Fix Expense Agent account filters with special characters

Expense Agent now properly handles G/L account lookups when account names or descriptions contain special characters like apostrophes or parentheses by quoting and escaping filter expressions.

Pull request · merged into main (BC30) on 2026-11-02 by Alexander-Ya · 2 files (+50 -1), 1 AL · fix · tier official · reviewed (checked by Opus)

What changed

  • Fixed account search filter to quote and escape embedded apostrophes
  • Prevents localized descriptions with parentheses or apostrophes from being misinterpreted as filter operators
  • Preserves case-insensitive matching and wildcard behavior
  • Applies to both G/L account-name lookup and account-subcategory fallback paths
  • Added regression tests for parentheses and apostrophes in both lookup scenarios
  • Behaviour changes for users or extensions.

AL objects touched

Context

  • Work items: AB#657205
  • Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
  • Systems: copilot

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