code change · featureSales & Receivablesofficial - Microsoftreviewed - checked by Opus

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

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

Context

  • Work items: AB#659533
  • Labels: AL: Apps (W1), Team: SCM
  • Systems: sales

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