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

#14346 [Main] Expense Management: add partner extension events and make Create Expense Report public

Expense management adds integration events for partners to customize expense report lines and posting without friend access, and makes the Create Expense Report codeunit public with a focused API surface.

Pull request · merged into main (BC30) on 2026-11-23 by t-prda · 6 files (+627 -7), 4 AL · feature · tier official · reviewed (checked by Opus)

What changed

  • Seven new integration events cover copying expense fields to report lines, posting operations, per diem calculations, and post-posting follow-up actions
  • Create Expense Report codeunit changed from internal to public, exposing only the AddSingleExpenseToExpenseReport procedure while keeping UI methods internal
  • Integration events added to Expense Report-Post, Expense Ledger Entry, and Expense Per Diem Calculation objects to support localization and partner customizations
  • Existing events like OnAfterReleaseExpense and OnCheckExpenseReportPostRestrictions are reused for consistency
  • Per diem calculation refactored to delegate to a local procedure for event raising without changing behavior for non-subscribers

AL objects touched

Context

  • Work items: AB#659840
  • Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
  • Systems: copilot
  • From the description: “adds a minimal set of integration events, each tied to a scenario, so partners can customize expense report lines and posting”

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