Page 6927 "Expenses API"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 7 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| SourceTable | Expense |
| PageType | API |
| Permissions | tabledata “EA Corp Card” = r |
Fields on this page
Layout controls in source order, grouped by the container they sit in. Shows: the table field a control is bound to (or its expression as written); ToolTip: the control’s own, else the bound field’s (marked).
| Group | Control | Shows | ToolTip |
|---|---|---|---|
| General | Id | Rec.SystemId |
— |
| No. | No. | Specifies the expense document number. Leave blank to assign a number from the Expense Nos. number series. from the table field | |
| Expense User Number | Expense User No. | Specifies the expense user who incurred the expense. from the table field | |
| Expense User System Id | ExpenseUserSystemId |
— | |
| Expense Report No. | Expense Report No. | Specifies the expense report that includes this expense. Set when added to a report. from the table field | |
| Posted Expense Report No. | Posted Expense Report No. | — | |
| Expense Category | Expense Category | Specifies the category assigned to this expense. from the table field | |
| Expense Subcategory | Expense Subcategory | — | |
| Status | Status | Specifies the current status of the expense. from the table field | |
| Description | Description | Specifies a short description of the expense. from the table field | |
| Justification | Justification | Specifies the justification for the expense per policy. from the table field | |
| Expense Date | Expense Date | Specifies the date the expense occurred. from the table field | |
| Expense Time | Expense Time | Specifies the time the expense occurred. from the table field | |
| Expense External Document No. | Expense Ext. Doc. No. | Specifies the receipt number or external reference on the document. from the table field | |
| Currency Code | CurrencyCodeDisplay |
— | |
| Amount | Amount | Specifies the total amount in the expense currency. from the table field | |
| Amount (LCY) | Amount (LCY) | Specifies the total amount in the local currency. from the table field | |
| Currency (LCY) | CurrencyLCYDisplay |
— | |
| Merchant Name | Merchant Name | Specifies the name of the merchant where the expense occurred. from the table field | |
| Merchant Registration Number | Merchant Registration No. | Specifies the vendor or merchant registration number for this expense. from the table field | |
| Merchant VAT Registration Number | Merchant VAT Registration No. | Specifies the vendor or merchant VAT registration number for this expense. from the table field | |
| Receipt Attached | Receipt Attached | — | |
| Card Expense Awaiting Report | Card Expense Awaiting Report | Specifies whether the expense was created from a corporate card transaction and is open or released and not yet on a report. from the table field | |
| Receipt Entry | Receipt Entry | — | |
| Shortcut Dimension 1 Code | Shortcut Dimension 1 Code | Specifies Shortcut Dimension 1 for this expense. from the table field | |
| Shortcut Dimension 2 Code | Shortcut Dimension 2 Code | Specifies Shortcut Dimension 2 for this expense. from the table field | |
| Payment Method Code | Payment Method Code | Specifies the payment method used for this expense. from the table field | |
| Refundable | Refundable | Specifies whether the expense is reimbursable. from the table field | |
| Billable | Billable | Specifies whether the expense is billable to a customer. from the table field | |
| Billable to Customer | Billable to Customer | Specifies the customer to bill for this expense. Available when Billable is turned on. from the table field | |
| Expense Location | Expense Location | Specifies the travel location for the expense. Available for Per Diem expenses. from the table field | |
| Starting Date and Time | Starting Date and Time | Specifies the start of the travel period for this expense. Editable for Per Diem expenses. from the table field | |
| Ending Date and Time | Ending Date and Time | Specifies the end of the travel period for this expense. Editable for Per Diem expenses. from the table field | |
| Non-Refundable Amount | Non-Refundable Amount | Specifies the reduction to the reimbursable amount. Available when Refundable is on and the category does not require itemization. from the table field | |
| Mileage | Mileage | Specifies the distance traveled for mileage reimbursement. Available for Mileage expenses. from the table field | |
| Unit of Measure Code | Unit of Measure Code | Specifies the unit of measure for mileage (for example, miles or kilometers). Available for Mileage expenses. from the table field | |
| Starting Point | Starting Point | Specifies the starting location for mileage. Available for Mileage expenses. from the table field | |
| Ending Point | Ending Point | Specifies the ending location for mileage. Available for Mileage expenses. from the table field | |
| Round Trip | Round Trip | Specifies whether the mileage expense is a round trip. | |
| Vehicle Type | Vehicle Type | Specifies the vehicle type used for this mileage expense. | |
| Total Mileage | TotalMileage |
Specifies the total mileage for reimbursement. | |
| Reimbursable Amount | Reimbursable Amount | Specifies the amount eligible for reimbursement based on policy. from the table field | |
| Reimbursable Amount (LCY) | Reimbursable Amount (LCY) | Specifies the reimbursable amount in the local currency. from the table field | |
| Credit Card Feed No. | Credit Card Feed No. | Specifies the reference to the imported credit card transaction. Set by the system when matched to a card feed. from the table field | |
| Source | Source | Specifies how the expense was originally created. | |
| Corporate Card Id | Corporate Card Id | Specifies the corporate card used to pay for this expense, independently of whether a feed transaction has arrived. from the table field | |
| Extraction Confidence | Extraction Confidence | — | |
| VAT Bus. Posting Group | VAT Bus. Posting Group | — | |
| VAT Prod. Posting Group | VAT Prod. Posting Group | — | |
| Expense Detail Required | Expense Detail Required | — | |
| Applied Rule Id | Applied Rule Id | — | |
| Reimbursement Type | Reimbursement Type | Specifies the type of reimbursement for this expense. from the table field | |
| Rule Violations | Rule Violations | Specifies whether any rule violations exist for this expense. from the table field | |
| No Receipt Type | No Receipt Type | Specifies whether the original receipt was lost and replaced by a no receipt declaration. from the table field | |
| No Receipt Reason | No Receipt Reason | Specifies why the original receipt is unavailable. from the table field | |
| No Receipt Declaration Id | No Receipt Declaration ID | — | |
| No Receipt Declaration Current | NoReceiptDeclarationCurrent |
— | |
| Compliance Status | Compliance Status | Specifies the compliance status assigned to the expense. from the table field | |
| Created Date Time | Created Date-Time | Specifies the date and time the expense was created. from the table field | |
| System Created At | Rec.SystemCreatedAt |
— | |
| System Modified At | Rec.SystemModifiedAt |
— | |
| System Created By | Rec.SystemCreatedBy |
— | |
| System Modified By | Rec.SystemModifiedBy |
— | |
| Created By Expense User Id | Created By Exp. User Id | — | |
| Modified By Expense User Id | Modified By Exp. User Id | — | |
| Project No. | Job No. | Specifies the job to assign this expense to. from the table field | |
| Project Task No. | Job Task No. | Specifies the job task to assign this expense to. from the table field | |
| Project Description | JobDescription |
— | |
| Project Task Description | JobTaskDescription |
— | |
| attachments | part Page 6950 “Expense Attachments API” | — | |
| Expense Itemizations | part Page 6935 “Expense Itemizations API” | — | |
| Expense Participants | part Page 6936 “Expense Participants API” | — | |
| Expense Per Diem | part Page 6954 “Expense Per Diem API” | — | |
| Expense VAT Specifications | part Page 7085 “Expense VAT Spec. API” | — | |
| Expense Rule Violations | part Page 6963 “Expense Rule Violations API” | — | |
| Card Receipt Data | part Page 7421 “EA Card Receipt Data API” | — |
Procedures
CreateNoReceiptDeclaration(var ActionContext: WebServiceActionContext; reason: Text; attestationConfirmed: Boolean)CancelNoReceiptDeclaration(var ActionContext: WebServiceActionContext)ReleaseExpense(var ActionContext: WebServiceActionContext)ReopenExpense(var ActionContext: WebServiceActionContext)ValidateExpenseRule(var ActionContext: WebServiceActionContext)ApplyExpenseRule(var ActionContext: WebServiceActionContext)
Plus 1 local procedures.
Triggers
OnInit, OnOpenPage, OnAfterGetRecord, OnNewRecord, OnInsertRecord, OnModifyRecord
Relations
- source table 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 6988 “Expense API Currency Helper” (4 calls:
OnAfterGetRecord → GetCurrencyCodeForAPI,OnInit → GetCurrencyCodeForAPI,OnInsertRecord → GetCurrencyCodeFromAPI, …) - Codeunit 6925 “No Receipt Declaration Mgt.” (3 calls:
CancelNoReceiptDeclaration → CancelDeclaration,CreateNoReceiptDeclaration → CreateDeclaration,OnAfterGetRecord → HasCurrentDeclaration) - Codeunit 6993 “Expense Agent API Validation” (2 calls:
OnInit → VerifyAgentAccess,OnInsertRecord → IsCurrentUserExpenseAgent) - Codeunit 6912 “Expense Auto Population” (1 call:
OnAfterGetRecord → GetEffectiveDistance) - Codeunit 6968 “Expense Audit Subscribers” (1 call:
OnInsertRecord → TelemetryCategory) - Codeunit 7447 “EA Corp Card Selection Mgt” (1 call:
UpdateExpenseUserNoFromSystemId → ValidateExpenseCard)
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 #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-09-28 #11770 [Master] - Bug 650783: [Expense Agent][Demo Data] Posted demo expenses remain Submitted with a dangling Expense Report No. (main, BC30, fix)
- 2026-08-27 #10561 Mileage Rate Setup (main, BC30, feature)
- 2026-08-11 #10130 [ExpenseAgent] Expose VatSpecifications on Expense API Page (main, BC30, feature)
- 2026-08-04 #9859 [Master] - Move Expense Agent (Preview) app into BCApps (main, BC30, feature, added)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Expense Agent Overview in Business Central — possibly related: Documents Expense Agent’s core expense processing and data extraction workflow. (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 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: "page", object_name: "Expenses API"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.