---
id: object/codeunit/6913
type: object
title: Codeunit 6913 "Expense Agent Quota Impl."
summary: Codeunit 6913 "Expense Agent Quota Impl." in ExpenseAgent (Microsoft.ExpenseAgent). 7 public procedures. Introduced in BC30.
tier: official
language: en
tags:
  - codeunit
  - expenseagent
versions:
  introduced: "30"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-11-24T00:56:51.308Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 790c3d81c0d94254b8cd09ef05e3ad214ff83a1c6339d577b4e2632729864960
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/d2abc1d2ceae394331716c8183ef60e1534c2ce0/src/Apps/W1/ExpenseAgent/app/src/Consumption/ExpenseAgentQuotaImpl.Codeunit.al
    title: src/Apps/W1/ExpenseAgent/app/src/Consumption/ExpenseAgentQuotaImpl.Codeunit.al (main)
    date: null
    commit: d2abc1d2ceae394331716c8183ef60e1534c2ce0
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations:
    - localization/us
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/14405
    - change/bcapps/12539
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-configuration-page
      title: Set Up Expense Agent in Business Central
      label: possibly related
      why: Quota handling is part of Expense Agent setup and configuration process.
      by: model
object_type: codeunit
object_id: 6913
name: Expense Agent Quota Impl.
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
extends: null
first_version: "30"
last_version: "30"
present_in:
  - "30"
changed_in: []
source_major: "30"
obsolete: null
countries:
  - us
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 7
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 2
  called_by: 0
  implements: 1
---

# Codeunit 6913 "Expense Agent Quota Impl."

> Codeunit 6913 "Expense Agent Quota Impl." in ExpenseAgent (Microsoft.ExpenseAgent). 7 public procedures. Introduced in BC30.

ExpenseAgent · Microsoft.ExpenseAgent · BC30 · [source at d2abc1d2](https://github.com/microsoft/BCApps/blob/d2abc1d2ceae394331716c8183ef60e1534c2ce0/src/Apps/W1/ExpenseAgent/app/src/Consumption/ExpenseAgentQuotaImpl.Codeunit.al) · facts from BC30

## Properties

| Property | Value |
|---|---|
| Access | Internal |

## Procedures

- `IsTrialStarted(): Boolean`
- `GetRemainingTrialQuota(): Integer`
- `TrialQuotaAvailable(): Boolean`
- `CanConsumePaidQuota(): Boolean`
- `IsConsumptionLogged(UniqueId: Text[1024]): Boolean`
- `ReportTrialConsumption(ConsumptionId: Guid; Quota: Integer)`
- `LogPaidConsumption(Usage: Integer; CopilotQuotaUsageType: Enum "Copilot Quota Usage Type"; ActionsSummary: Text[1024]; ActionsDescription: Text; UniqueId: Text[1024])`

## Calls

From the extracted call graph of BC30 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an `Object::"Name"` argument. Interface dispatch and calls through events are not counted, so the list is not complete.

- [Codeunit 7755 "Copilot Feature Trial"](../codeunit/7755.md) (4 calls: `GetRemainingTrialQuota → GetQuotaRemaining`, `IsTrialStarted → IsTrialStarted`, `ReportTrialConsumption → ReportNonRecurringFeatureTrialQuota`, …)
- [Codeunit 7785 "Copilot Quota"](../codeunit/7785.md) (3 calls: `CanConsumePaidQuota → CanConsume`, `IsConsumptionLogged → IsAgentUserAIConsumptionLogged`, `LogPaidConsumption → LogAgentUserAIConsumption`)

## Implements

- [Interface "Expense Agent Quota"](../interface/expense-agent-quota.md)

## Recent changes

- 2026-11-23 [#14405 [Expense Agent] Renumber codeunits that collide with deprecated country apps](../../changes/bcapps/14405.md) (main, BC30, fix)
- 2026-10-26 [#12539 Add Expense Agent consumption V2 and trial support](../../changes/bcapps/12539.md) (main, BC30, feature, added)

## Across versions

- Present in: BC30
- Changed (declaration) in: none

## Countries that replace it

[US](../../localizations/us.md)

## 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 Agent in Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-configuration-page) — possibly related: Quota handling is part of Expense Agent setup and configuration process. (model-linked)

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). The call sections above are our own, per object, from the BC30 call graph. 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: "codeunit", object_name: "Expense Agent Quota Impl.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
