Codeunit 6984 "Release Exp. Report Document"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29present
- BC30changed
Neighbourhood 9 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| TableNo | Expense Report Header |
| Permissions | TableData “Expense Report Header” = rm, TableData “Expense Report Line” = r |
Events published
OnAfterReleaseExpenseReport(var ExpenseReportHeader: Record "Expense Report Header")(integration)
Procedures
Reopen(var ExpReportHeader: Record "Expense Report Header")(internal)PerformManualRelease(var ExpReportHeader: Record "Expense Report Header"): Releases the expense report as the current user after checking the status of the report and the required fields on its lines.PerformManualCheckAndRelease(var ExpReportHeader: Record "Expense Report Header"): Checks and releases the expense report as the current user. An error is raised if the report or its lines do not meet the release requirements.PerformManualReopen(var ExpReportHeader: Record "Expense Report Header"): Reopens the expense report as the current user so that it can be edited again. An error is raised if the report is pending approval or interim approved.PerformManualPendingApproval(var ExpReportHeader: Record "Expense Report Header"; SubmitterExpenseUserNo: Code[20])(internal)PerformManualReleaseAndPendingApproval(var ExpReportHeader: Record "Expense Report Header"; SubmitterExpenseUserNo: Code[20])(internal)PerformManualReleaseAndPendingApproval(var ExpReportHeader: Record "Expense Report Header"; SubmitterExpenseUserNo: Code[20]; SubmissionComment: Text)(internal)PerformManualApproved(var ExpReportHeader: Record "Expense Report Header"; ApproverExpenseUserNo: Code[20])(internal)PerformManualApproved(var ExpReportHeader: Record "Expense Report Header"; ApproverExpenseUserNo: Code[20]; SkipPolicyValidation: Boolean)(internal)PerformManualRejected(var ExpReportHeader: Record "Expense Report Header"; ApproverExpenseUserNo: Code[20]; RejectReason: Text)(internal)PerformManualRejectedAndReopen(var ExpReportHeader: Record "Expense Report Header"; ApproverExpenseUserNo: Code[20]; RejectReason: Text)(internal)
Plus 10 local procedures.
Triggers
OnRun
Relations
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 6901 “Expense Report Approval Mgmt” (3 calls:
PerformManualPendingApproval → Submit,PerformManualRejected → Reject,PerformManualRejectedAndReopen → Reject) - Codeunit 6902 “Expense Rule Validation” (1 call:
CheckMandatoryFields → ValidateExpenseReportLineAgainstRule) - Codeunit 6925 “No Receipt Declaration Mgt.” (1 call:
CheckMandatoryFields → HasDeclaration) - Codeunit 7447 “EA Corp Card Selection Mgt” (1 call:
CheckMandatoryFields → ValidateReportLine)
Called by
- Table 6906 “Expense Report Header” (4 calls:
PerformManualPendingApproval → PerformManualPendingApproval,PerformManualRejected → PerformManualRejected,PerformManualRejectedAndReopen → PerformManualRejectedAndReopen, …) - Codeunit 6985 “Expense Report Manual Release” (1 call:
OnRun → PerformManualRelease) - Codeunit 6986 “Expense Report Manual Reopen” (1 call:
OnRun → PerformManualReopen) - Codeunit 6987 “Expense Report-Post” (1 call:
RunWithCheck → (object))
Recent changes
- 2026-11-27 #13674 Add expense interim approval controls, approval outcomes, and approver lookup (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-11-03 #12985 [Master] - Bug 654115: [Expense Agent] Cannot submit report with a non-refundable Employee Paid line: ‘nothing to refund’ blocks release, report stuck in draft (main, BC30, fix)
- 2026-09-15 #11425 Bug 650137: [29.x] Expense Locations and Per-diem rules in configuration - Backport (releases/29.x, BC29, feature)
- 2026-09-10 #10155 Slice 641293: [Expense Agent] Expense Locations and Per-diem rules in configurationAdded more locations (main, BC30, feature)
- 2026-09-03 #10829 [29.x][Expense Agent] Backport approval conversation from #10570 (releases/29.x, BC29, feature)
- 2026-09-02 #10570 Expense Agent: add approval conversation to expense reports (main, BC30, feature)
- 2026-08-27 #10542 [Master] - Slice 638097: [Expense Agent] Enable simple interim approval scenario (main, BC30, feature)
- 2026-08-26 #10631 Integration/main to releases 29.x 31a860b5 (releases/29.x, BC29, feature)
- 2026-08-21 #10031 Add AI-assisted policy evaluation backend to Expense Agent (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 Exp. Report Document"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.