Codeunit 6980 "Release Expense Document"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 8 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Expense |
| Permissions | TableData Expense = rm |
Events published
OnAfterReleaseExpense(var Expense: Record Expense)(integration)
Procedures
ReleaseCardExpenseWithoutCategory(var ExpenseRecord: Record Expense)(internal): Releases an expense created from a corporate card transaction without requiring an expense category, so that the Expense Agent can add it to a report before the user picks a category. All other release checks apply, and the report line still needs a category before the report can be released.Reopen(var ExpenseRecord: Record Expense)(internal)PerformManualRelease(var ExpenseRecord: Record Expense): Releases the expense as the current user after checking that the required fields are filled in. The expense rules are re-evaluated and any violations are recorded, but violations do not block the release.PerformManualCheckAndRelease(var ExpenseRecord: Record Expense): Checks and releases the expense as the current user. An error is raised if the expense does not meet the release requirements.PerformManualReopen(var ExpenseRecord: Record Expense): Reopens the released expense as the current user so that it can be edited again. The expense must not be included in an expense report.
Plus 2 local procedures.
Triggers
OnRun
Relations
- runs on Table 6900 “Expense”
Calls
From the extracted call graph of BC29 (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 6925 “No Receipt Declaration Mgt.” (2 calls:
Code → HasCurrentDeclaration,Code → HasOriginalReceipt) - Codeunit 7447 “EA Corp Card Selection Mgt” (1 call:
Code → ValidateExpenseCard)
Called by
- Codeunit 6981 “Expense Manual Reopen” (1 call:
OnRun → PerformManualReopen) - Codeunit 6982 “Expense Manual Release” (1 call:
OnRun → PerformManualRelease) - Codeunit 6983 “Create Expense Report” (1 call:
AddCardExpenseToExpenseReport → ReleaseCardExpenseWithoutCategory) - Codeunit 7450 “EA Card Receipt Data Apply” (1 call:
Apply → ReleaseCardExpenseWithoutCategory) - Table 6900 “Expense” (1 call:
PerformManualRelease → PerformManualRelease)
Recent changes
- 2026-11-29 #14598 [Expense Agent] Corporate card transactions as expense report lines (main, BC30, feature)
- 2026-11-26 #14528 Deliverable 660629: [29.x] BCApps part of No Receipt expenses (releases/29.x, BC29, feature)
- 2026-11-20 #14335 [Main] Expense Management: make Expense Management Setup public; keep agent and corporate card surface internal (main, BC30, feature)
- 2026-11-20 #14295 [Main] Expense Management: make core expense business objects public (main, BC30, feature)
- 2026-11-20 #12544 Slice 626931: [Expense Agent] Lost receipt workflow and document creation (November ’26) (main, BC30, feature)
- 2026-11-16 #13587 Update Corp Card manual selection (main, BC30, feature)
- 2026-08-04 #9859 [Master] - Move Expense Agent (Preview) app into BCApps (main, BC30, feature, added)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 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: "Release Expense Document"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.