---
id: object/table/7092
type: object
title: Table 7092 "Expense Policy"
summary: Table 7092 "Expense Policy" in ExpenseAgent (Microsoft.ExpenseAgent). 7 fields, 2 public procedures. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - table
  - expenseagent
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: c39dd2ed6317c5c10c9b2fe0fea26ded64a52c7dced05805ae9fd0463f5250cc
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/MasterData/Tables/ExpensePolicy.Table.al
    title: src/Apps/W1/ExpenseAgent/app/src/MasterData/Tables/ExpensePolicy.Table.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn:
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-categories-rules
    - https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-management-setup
  objects: []
  features: []
  topics:
    - topic/business-central/business-functionality/expense-management-preview/set-up-expense-management
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/10631
    - change/bcapps/10031
object_type: table
object_id: 7092
name: Expense Policy
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 7
  procedures: 3
  events: 0
  subscribers: 0
relations:
  out: 1
  referenced_by: 4
  pages: 2
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 0
  implements: 0
---

# Table 7092 "Expense Policy"

> Table 7092 "Expense Policy" in ExpenseAgent (Microsoft.ExpenseAgent). 7 fields, 2 public procedures. Introduced in BC29, still in BC30.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/ExpenseAgent/app/src/MasterData/Tables/ExpensePolicy.Table.al) · facts from BC29

Learn documents this table through its pages: [Page 7127 "Expense Policies"](../page/7127.md) (2 Learn pages).

## Properties

| Property | Value |
|---|---|
| Caption | Expense Policy |
| Access | Internal |
| DataClassification | CustomerContent |

## Fields

Explanation: the field's ToolTip in the code; without one, the ToolTip of a page control bound to the field (marked via the page); without that, its Caption (marked caption) when that differs from the name.

| No. | Name | Type | Explanation | Notes |
|---|---|---|---|---|
| 1 | Subject Type | Enum "Expense Policy Subject" | — | enum [Enum 6990 "Expense Policy Subject"](../enum/6990.md) |
| 2 | Line No. | Integer | — |  |
| 10 | Expense Category Code | Code[20] | Specifies the expense category this policy applies to. <small>via [Page 7127 "Expense Policies"](../page/7127.md)</small> | TableRelation [Table 6921 "Expense Category"](../table/6921.md) (Expense Category) |
| 11 | Description | Text[50] | Specifies a short description of the policy. <small>via [Page 7127 "Expense Policies"](../page/7127.md)</small> |  |
| 12 | Policy Text | Text[2048] | Specifies the full policy text that the AI evaluates expenses against. <small>via [Page 7127 "Expense Policies"](../page/7127.md)</small> |  |
| 20 | Enabled | Boolean | Specifies whether this policy is active for evaluation. <small>via [Page 7127 "Expense Policies"](../page/7127.md)</small> |  |
| 21 | Version | Integer | — | not editable |

## Keys

- PK: Subject Type, Line No. (clustered)
- Category: Expense Category Code
- Applicable: Subject Type, Enabled, Expense Category Code

## Procedures

- `SetApplicableToLineFilter(ExpenseReportLine: Record "Expense Report Line")` (internal)
- `AppliesToLine(ExpenseReportLine: Record "Expense Report Line"): Boolean` (internal)

Plus 1 local procedures.

## Triggers

OnInsert, OnModify

## Relations

- Expense Category Code: TableRelation [Table 6921 "Expense Category"](../table/6921.md)

## Referenced by

4 fields in 2 objects relate to this table (TableRelation or CalcFormula).

- [Table 7096 "Expense Policy Evaluation"](../table/7096.md): Is Current, Policy System Id
- [Table 7105 "Posted Exp. Policy Evaluation"](../table/7105.md): Is Current, Policy System Id

## Pages and codeunits on this table

- [Page 7104 "Expense Policies API"](../page/7104.md) (source table)
- [Page 7127 "Expense Policies"](../page/7127.md) (source table)

## Recent changes

- 2026-08-26 [#10631 Integration/main to releases 29.x 31a860b5](../../changes/bcapps/10631.md) (releases/29.x, BC29, feature, added)
- 2026-08-21 [#10031 Add AI-assisted policy evaluation backend to Expense Agent](../../changes/bcapps/10031.md) (main, BC30, feature, added)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

Source: AL metadata extracted from the code (names, ids, signatures, properties); no code bodies (D10).

## Ask your agent

Procedure bodies are not stored here (D10). For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: `bcatlas_resolve_node(object_type: "table", object_name: "Expense Policy")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
