---
id: change/bcapps/14346
type: change
title: "#14346 [Main] Expense Management: add partner extension events and make Create Expense Report public"
summary: 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.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - codeunit create expense report
  - codeunit expense report-post
  - table expense ledger entry
  - codeunit expense per diem calculation
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-25T01:04:59.904Z"
  flags: []
generated:
  at: "2026-12-01T00:17:57.990Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 79dc0b262a1826292a7b13a51a7e1a27f43622b2
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/14346
    title: "microsoft/BCApps#14346: [Main] Expense Management: add partner extension events and make Create Expense Report public"
    date: "2026-11-23"
    commit: 79dc0b262a1826292a7b13a51a7e1a27f43622b2
    t: null
    quote: adds a minimal set of integration events, each tied to a scenario, so partners can customize expense report lines and posting
links:
  learn: []
  objects:
    - object/codeunit/6983
    - object/codeunit/6987
    - object/table/6912
    - object/codeunit/6911
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-post-reports
      title: Post Expense Reports in Business Central
      label: possibly related
      why: Posting expense reports to general ledger with calculation and posting logic.
      by: model
number: 14346
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/14346
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-23T10:54:01Z"
author: t-prda
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - ExpenseManagement
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: false
breaking: false
files:
  count: 6
  additions: 627
  deletions: 7
  al: 4
apps:
  - ExpenseAgent
objects_touched:
  - key: codeunit/6983
    page: codeunit/6983
    type: codeunit
    id: 6983
    name: Create Expense Report
    app: ExpenseAgent
    status: modified
  - key: codeunit/6987
    page: codeunit/6987
    type: codeunit
    id: 6987
    name: Expense Report-Post
    app: ExpenseAgent
    status: modified
  - key: table/6912
    page: table/6912
    type: table
    id: 6912
    name: Expense Ledger Entry
    app: ExpenseAgent
    status: modified
  - key: codeunit/6911
    page: codeunit/6911
    type: codeunit
    id: 6911
    name: Expense Per Diem Calculation
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 659840
systems:
  - copilot
quote: adds a minimal set of integration events, each tied to a scenario, so partners can customize expense report lines and posting
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #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](https://github.com/microsoft/BCApps/pull/14346) · 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

- [Codeunit 6983 "Create Expense Report"](../../objects/codeunit/6983.md), ExpenseAgent: modified
- [Codeunit 6987 "Expense Report-Post"](../../objects/codeunit/6987.md), ExpenseAgent: modified
- [Table 6912 "Expense Ledger Entry"](../../objects/table/6912.md), ExpenseAgent: modified
- [Codeunit 6911 "Expense Per Diem Calculation"](../../objects/codeunit/6911.md), ExpenseAgent: modified

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

## Possibly related

No source states these links: they share an object, a model read them, or a person found the same subject.

- [Post Expense Reports in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-post-reports) — possibly related: Posting expense reports to general ledger with calculation and posting logic. (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).
