Page 7134 "Travel Requests API"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 5 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| SourceTable | Spend Request |
| PageType | API |
| Permissions | tabledata “Spend Request” = rimd, tabledata “Spend Request Detail” = rmd, tabledata “Spend Request To G/L Link” = rd, tabledata “Expense Report Header” = ri, tabledata “Posted Expense Report Header” = r, tabledata “Posted Expense Report Line” = 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 unique identifier of the spend request. from the table field | |
| Requested By | Requested By | Specifies the employee who created the request. This value can be set only when creating the request. | |
| Status | Status | Specifies the approval status of the spend request. from the table field | |
| G/L Account No. | G/L Account No. | The G/L Account that the expenses will primarily be posted to. from the table field | |
| Purpose | Purpose | Specifies the purpose of the spend request. from the table field | |
| Currency Code | CurrencyCodeDisplay |
Specifies the currency used for estimation. The local currency is represented by its currency code in the API. | |
| Total Expected Amount | Total Expected Amount | Specifies the total expected amount of the spend request in the currency specified. from the table field | |
| Total Expected Amount (LCY) | Total Expected Amount (LCY) | Specifies the total expected amount of the spend request. from the table field | |
| Total Spent Amount (LCY) | Total Spent Amount (LCY) | Specifies the total spent amount of the spend request. from the table field | |
| Total Line Amount (LCY) | Total Line Amount (LCY) | Specifies the total amount in local currency for all the detail lines. from the table field | |
| Expected Start Date | ExpectedStartDate |
Specifies the expected start date of the travel request. | |
| Expected End Date | ExpectedEndDate |
Specifies the expected end date of the travel request. | |
| Closed At | Closed At | Specifies the time when the spend request was closed. from the table field | |
| Closed By Document No. | Closed By Document No. | Specifies the document no. of the transaction that closed the spend request. from the table field | |
| Shortcut Dimension 1 Code | Shortcut Dimension 1 Code | Specifies the code for Shortcut Dimension 1, which is one of two global dimension codes that you set up in the General Ledger Setup page. from the table field | |
| Shortcut Dimension 2 Code | Shortcut Dimension 2 Code | Specifies the code for Shortcut Dimension 2, which is one of two global dimension codes that you set up in the General Ledger Setup page. from the table field | |
| Requested For | Requested For | Specifies the expense user for whom the travel request is being created. from the table field | |
| Business Justification | Business Justification | Specifies the business justification for the travel. from the table field | |
| Travel Policy Acknowledgment | Travel Policy Acknowledgment | Specifies whether the travel policy has been acknowledged. from the table field | |
| International Travel obsolete Pending 30.0; #if not CLEAN29 | International Travel | Specifies whether the travel is international. from the table field | |
| Origin Country obsolete Pending 30.0; #if not CLEAN29 | Origin Country/Region Code | Specifies the origin country for the travel. from the table field | |
| Destination Country obsolete Pending 30.0; #if not CLEAN29 | Dest. Country/Region Code | Specifies the destination country for the travel. from the table field | |
| Restrictions | Restrictions | Specifies any travel restrictions that apply. from the table field | |
| Per Diem Included | Per Diem Included | Specifies whether per diem is included in the travel request. from the table field | |
| Expense Location | Expense Location | Specifies the expense location of the travel. The expense location can only be used, and is required, when per diem is included. It must have a per diem rule. from the table field | |
| Actual Start Date and Time | Actual Start Date and Time | Specifies the actual start date and time of the travel. Required when per diem is included. from the table field | |
| Actual End Date and Time | Actual End Date and Time | Specifies the actual end date and time of the travel. Required when per diem is included. from the table field | |
| Submitted By Expense User No. | Submitted By Expense User No. | Specifies the expense user who submitted the travel request. from the table field | |
| Submitted At | Submitted At | Specifies the date and time when the travel request was submitted. from the table field | |
| Submitter Comment | Submitter Comment | Specifies the latest comment from the submitter when submitting a travel request or resubmitting a rejected travel request. from the table field | |
| Approval Expense User No. | Approval Expense User No. | Specifies the expense user who approved or rejected the travel request. from the table field | |
| Approved/Rejected Date and Time | Approved/Rejected At | Specifies the date and time when the travel request was approved or rejected. | |
| Approved/Rejected By Expense User Display Name | Approval Expense User Name | Specifies the display name of the expense user who approved or rejected the travel request. from the table field | |
| Approved/Rejected By Expense User Number | Approval Expense User No. | Specifies the expense user who approved or rejected the travel request. | |
| Rejection Reason | Rejection Reason | Specifies the reason the travel request was rejected. from the table field | |
| Travel Request Details | part Page 7135 “Travel Request Details API” | — | |
| Travelers | part Page 7103 “Travelers API” | — | |
| Employees | part Page 6917 “Employees API” | — | |
| Activity Log Entries | part Page 7122 “Expense Activity Log API” | — |
Procedures
SubmitTravelRequest(var ActionContext: WebServiceActionContext; SubmitterExpenseUserNo: Code[20])SubmitTravelRequestWithComment(var ActionContext: WebServiceActionContext; SubmitterExpenseUserNo: Code[20]; SubmissionComment: Text)ApproveTravelRequest(var ActionContext: WebServiceActionContext; ApproverExpenseUserNo: Code[20])RejectTravelRequest(var ActionContext: WebServiceActionContext; ApproverExpenseUserNo: Code[20]; RejectReason: Text)CreateExpenseReport(var ActionContext: WebServiceActionContext)
Plus 9 local procedures.
Triggers
OnInit, OnOpenPage, OnAfterGetRecord, OnNewRecord, OnFindRecord, OnInsertRecord, OnModifyRecord
Relations
- source table Table 6840 “Spend Request”
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 7133 “Travel Request Approval” (6 calls:
ApproveTravelRequest → Approve,ProcessApproverFilter → ApplyApproverFilter,ProcessOwnerFilter → ApplyOwnerFilter, …) - Codeunit 6988 “Expense API Currency Helper” (1 call:
OnAfterGetRecord → GetCurrencyCodeForAPI) - Codeunit 6993 “Expense Agent API Validation” (1 call:
OnInit → VerifyAgentAccess) - Codeunit 8703 “Feature Telemetry” (1 call:
LogCreateExpenseReport → LogUsage)
Recent changes
- 2026-10-02 #12074 Expense Agent: travel request expense location, per-traveler reports, activity log and submitter comment (main, BC30, feature)
- 2026-10-01 #11654 Repair and re-enable Expense Agent permission and posted-history tests (main, BC30, fix)
- 2026-09-17 #11333 Align travel request APIs with employee travelers and expense report lifecycle (main, BC30, feature)
- 2026-09-09 #11007 Add Travel Request API lifecycle to Expense Agent (main, BC30, feature)
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- Create and Submit Travel Requests in Expense Agent — possibly related: API for managing travel requests users create and submit for approval (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: "Travel Requests API"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.