#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.
- 2files
- 1AL files
- 1objects
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
- Codeunit 6971 “Create Expense GL Account”, ExpenseAgent: modified
Context
- Work items: AB#657205
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Create and Submit Expense Reports in Expense Agent — possibly related: Documents Expense Agent account filtering for expense report creation and submission (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).