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

Codeunit 6987 "Expense Report-Post"

ExpenseAgent · Microsoft.ExpenseAgent

Across versions

  1. BC23-28not present
  2. BC29present
  3. BC30changed

Neighbourhood 19 connected objects and pages

Table 6906 "Expense Report Header" (relates to)Expense Report HeaderCodeunit 7057 "WHT Exp. Report Post Handler" (event subscribers, 3 links)WHT Exp. Report Post HandlerCodeunit 12 "Gen. Jnl.-Post Line" (calls, 9 links)Gen. Jnl.-Post LineCodeunit 6926 "Expense Activity Log Mgt." (calls, 3 links)Expense Activity Log Mgt.Codeunit 6996 "Exp. Preview Posting Handler" (calls, 2 links)Exp. Preview Posting HandlerCodeunit 6997 "Expense Preview Post Mgt." (calls, 2 links)Expense Preview Post Mgt.Codeunit 1012 "Job Jnl.-Post Line" (calls)Job Jnl.-Post LineCodeunit 1173 "Document Attachment Mgmt" (calls)Document Attachment MgmtCodeunit 19 "Gen. Jnl.-Post Preview" (calls)Gen. Jnl.-Post PreviewCodeunit 27 "Confirm Management" (calls)Confirm ManagementCodeunit 6941 "EA Http Client" (calls)EA Http ClientCodeunit 6984 "Release Exp. Report Document" (calls)Release Exp. Report DocumentCodeunit 6994 "Expense Preview Post Instance" (calls)Expense Preview Post InstanceCodeunit 8703 "Feature Telemetry" (calls)Feature TelemetryPage 456 "No. Series" (calls)Page 6910 "Expense Report" (calls)Page 6980 "Manager Expense Report" (calls)Page 6997 "Expense Reports" (calls)Table 6907 "Expense Report Line" (calls)

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 ea08af5e · facts from BC29

Properties

Property Value
Access Internal
TableNo Expense Report Header
Permissions TableData “Expense Report Header” = rimd, TableData “Expense Report Line” = rimd, TableData “Sales Header” = rimd, TableData “Sales Line” = rimd, TableData “Gen. Journal Line” = rimd, TableData “Expense Ledger Entry” = rimd, TableData “Expense Report Line Particip.” = rimd, TableData “Expense Report…

Events published

  • OnAfterProcessExpenseReportLine(ExpenseReportHeader: Record "Expense Report Header"; ExpenseReportLine: Record "Expense Report Line"; PostedExpenseReportLine: Record "Posted Expense Report Line"; PostedExpenseReportHeader: Record "Posted Expense Report Header") (integration)
  • OnBeforePostEmployeeEntry(var GenJournalLine: Record "Gen. Journal Line"; ExpenseReportHeader: Record "Expense Report Header"; PostedExpenseReportHeader: Record "Posted Expense Report Header") (integration)
  • OnAfterPostEmployeeEntry(GenJournalLine: Record "Gen. Journal Line"; ExpenseReportHeader: Record "Expense Report Header"; PostedExpenseReportHeader: Record "Posted Expense Report Header") (integration)

Event subscriptions

  • OnAfterBindSubscription subscribes to Codeunit “Gen. Jnl.-Post Preview” OnAfterBindSubscription
  • OnAfterUnbindSubscription subscribes to Codeunit “Gen. Jnl.-Post Preview” OnAfterUnbindSubscription

Procedures

  • RunWithCheck(var ExpenseReportHeader: Record "Expense Report Header") (internal)
  • PostExpenseReport(var ExpenseReportHeader: Record "Expense Report Header") (internal)
  • UpdateVATAmount(var Amount: Decimal; var AmountLCY: Decimal; var VATAmount: Decimal; var VATAmountLCY: Decimal; var VATBaseAmount: Decimal; var VATBaseAmountLCY: Decimal; ExpenseReportHeader: Record "Expense Report Header"; ExpenseReportLine: Record "Expense Report Line")
  • SetPreviewMode(NewPreviewMode: Boolean): Sets the Preview Mode for the current instance of the codeunit. Preview Mode ensures no transactions are committed to the database and no documents are sent.
  • CheckAndSendReimbursementNotification(PostedExpReportHeader: Record "Posted Expense Report Header"): Boolean (internal)

Plus 54 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.

Called by

Recent changes

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

Evidence 1 sources