codeunitCopilot & Agentsofficial - Microsoftderived - from the source, no model text

Codeunit 6983 "Create Expense Report"

ExpenseAgent · Microsoft.ExpenseAgent

Across versions

  1. BC23-28not present
  2. BC29-30present

Neighbourhood 6 connected objects and pages

Codeunit 6910 "Expense Report" (calls, 4 links)Expense ReportPage 6928 "Expense Reports API" (calls, 2 links)Expense Reports APICodeunit 1173 "Document Attachment Mgmt" (calls)Document Attachment MgmtCodeunit 27 "Confirm Management" (calls)Confirm ManagementCodeunit 6980 "Release Expense Document" (calls)Release Expense DocumentCodeunit 7442 "EA Create Corp Card Setup" (calls)EA Create Corp Card Setup

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29

Events published

  • OnAfterCopyExpenseFieldsToReportLine(Expense: Record Expense; var ExpenseReportLine: Record "Expense Report Line") (integration): Raised after the fields of an expense are copied to a new expense report line, before the line amounts are recalculated and the line is saved.

Procedures

  • AddExpensesToReport(var ExpenseReportHeader: Record "Expense Report Header") (internal): Adds selected expenses to an expense report as lines
  • AddExpensesToReport(var Expense: Record Expense) (internal)
  • AddSingleExpenseToExpenseReport(Expense: Record Expense; ExpenseReportHeader: Record "Expense Report Header"): Record "Expense Report Line": Adds a released expense to an expense report as a new expense report line. The expense’s participants, itemizations, per diem lines, VAT specifications and attachments are copied to the line, the expense rules are evaluated and any violations are recorded, and the expense is marked as submitted on t…
  • AddCardExpenseToExpenseReport(var Expense: Record Expense; ExpenseReportHeader: Record "Expense Report Header"): Record "Expense Report Line" (internal): Adds an expense created from a corporate card transaction to an open expense report for the Expense Agent. An open card expense is released first without requiring an expense category, so the line can be added before the user picks one; the report still requires a category on every line before it ca…

Plus 13 local procedures.

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.

Called by

Recent changes

No source states these links: they share an object, a model read them, or a person found the same subject.

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: "codeunit", object_name: "Create Expense Report"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources