#14143 Enable internal SLS hooks for harms evaluations
Internal hooks are added to the Sales Lines Suggestions feature to support harms evaluations. An internal event fires after chat completions and a CSV query-building method becomes internal for test reuse.
- 3files
- 2AL files
- 2objects
Pull request · merged into main (BC30) on 2026-11-17 by qasimikram · 3 files (+13 -1), 2 AL · feature · tier official · reviewed (checked by Opus)
What changed
- New internal event OnAfterGenerateChatCompletion fires after text and attachment completion calls
- CSV BuildSearchQuery method changed from local to internal for test reuse
- Harms test app added to internalsVisibleTo list for dedicated test visibility
- Internal visibility enforced at compiler level, restricting subscription to module and friend apps
- No business flow or prompt changes; purely test infrastructure support
AL objects touched
- Page 7290 “Sales Line From Attachment”, SalesLinesSuggestions: modified
- Codeunit 7275 “Sales Lines Suggestions Impl.”, SalesLinesSuggestions: modified
Context
- Work items: AB#659533
- Labels: AL: Apps (W1), Team: SCM
- Systems: sales
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Sales line suggestions with Copilot — possibly related: Documents sales line suggestions with Copilot feature that this change enables. (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).