---
id: change/bcapps/13671
type: change
title: "#13671 Expense Agent: configure posting groups per subcategory"
summary: Expense subcategories can now override posting groups from their parent category, allowing different G/L accounts for hotel rooms, meals, parking, and other subcategory types. The optional posting group field is exposed in setup pages and APIs, with blank values inheriting the category default.
tier: official
language: en
tags:
  - feature
  - main
  - bc30
  - page expense subcategories api
  - codeunit expense report-post
  - page expense subcategories
  - table expense category
  - table expense posting group
  - table expense subcategory
system: copilot
review:
  state: reviewed
  by: opus
  at: "2026-11-29T00:46:33.213Z"
  flags: []
generated:
  at: "2026-11-29T00:16:19.301Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: 829ce7b3fb8145aa0bcfe66837e221b66deb8353
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/pull/13671
    title: "microsoft/BCApps#13671: Expense Agent: configure posting groups per subcategory"
    date: "2026-11-26"
    commit: 829ce7b3fb8145aa0bcfe66837e221b66deb8353
    t: null
    quote: Allow hotel room, meals, parking, and other expense subcategories to use different expense G/L accounts.
links:
  learn: []
  objects:
    - object/page/6925
    - object/codeunit/6987
    - object/page/6973
    - object/table/6921
    - object/table/6928
    - object/table/6929
    - object/page/6967
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-categories-rules
      title: Set Up Expense Categories, Rules, and Policies
      label: possibly related
      why: touches Page 6973 "Expense Subcategories"
      by: code
number: 13671
repo: microsoft/BCApps
source_id: bcapps-prs
url: https://github.com/microsoft/BCApps/pull/13671
kind: pr
base_branch: main
major: "30"
merged_at: "2026-11-26T15:24:39Z"
author: Alexander-Ya
author_type: User
community_contribution: false
labels:
  - "AL: Apps (W1)"
  - ExpenseManagement
  - "Team: Finance"
change_class: code
change_kind: feature
behavior_change: true
breaking: false
files:
  count: 9
  additions: 843
  deletions: 67
  al: 7
apps:
  - ExpenseAgent
objects_touched:
  - key: page/6925
    page: page/6925
    type: page
    id: 6925
    name: Expense Subcategories API
    app: ExpenseAgent
    status: modified
  - key: codeunit/6987
    page: codeunit/6987
    type: codeunit
    id: 6987
    name: Expense Report-Post
    app: ExpenseAgent
    status: modified
  - key: page/6973
    page: page/6973
    type: page
    id: 6973
    name: Expense Subcategories
    app: ExpenseAgent
    status: modified
  - key: table/6921
    page: table/6921
    type: table
    id: 6921
    name: Expense Category
    app: ExpenseAgent
    status: modified
  - key: table/6928
    page: table/6928
    type: table
    id: 6928
    name: Expense Posting Group
    app: ExpenseAgent
    status: modified
  - key: table/6929
    page: table/6929
    type: table
    id: 6929
    name: Expense Subcategory
    app: ExpenseAgent
    status: modified
  - key: page/6967
    page: page/6967
    type: page
    id: 6967
    name: Exp. Subcategories Preview
    app: ExpenseAgent
    status: modified
objects_unjoined: []
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 623814
systems:
  - copilot
quote: Allow hotel room, meals, parking, and other expense subcategories to use different expense G/L accounts.
joined_against:
  major: "30"
  commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
---

# #13671 Expense Agent: configure posting groups per subcategory

> Expense subcategories can now override posting groups from their parent category, allowing different G/L accounts for hotel rooms, meals, parking, and other subcategory types. The optional posting group field is exposed in setup pages and APIs, with blank values inheriting the category default.

[Pull request](https://github.com/microsoft/BCApps/pull/13671) · merged into `main` (BC30) on 2026-11-26 by Alexander-Ya · 9 files (+843 -67), 7 AL · feature · tier official · reviewed (checked by Opus)

## What changed

- New optional Posting Group field on Expense Subcategory table that overrides the parent category posting group
- Posting group is exposed in subcategory setup page, preview page, and read-only API
- Financial itemizations split across separate accounts when subcategory override is configured
- Blank posting group field maintains backward compatibility by inheriting category posting group
- Posting groups referenced by subcategories are protected from deletion
- Behaviour changes for users or extensions.

## AL objects touched

- [Page 6925 "Expense Subcategories API"](../../objects/page/6925.md), ExpenseAgent: modified
- [Codeunit 6987 "Expense Report-Post"](../../objects/codeunit/6987.md), ExpenseAgent: modified
- [Page 6973 "Expense Subcategories"](../../objects/page/6973.md), ExpenseAgent: modified
- [Table 6921 "Expense Category"](../../objects/table/6921.md), ExpenseAgent: modified
- [Table 6928 "Expense Posting Group"](../../objects/table/6928.md), ExpenseAgent: modified
- [Table 6929 "Expense Subcategory"](../../objects/table/6929.md), ExpenseAgent: modified
- [Page 6967 "Exp. Subcategories Preview"](../../objects/page/6967.md), ExpenseAgent: modified

## Context

- Work items: AB#623814
- Labels: AL: Apps (W1), ExpenseManagement, Team: Finance
- Systems: copilot
- From the description: "Allow hotel room, meals, parking, and other expense subcategories to use different expense G/L accounts."

## Possibly related

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

- [Set Up Expense Categories, Rules, and Policies](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-categories-rules) — possibly related: touches Page 6973 "Expense Subcategories"

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