Codeunit 6992 "Install Expense Agent Setup"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29-30present
Neighbourhood 4 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
| Subtype | Install |
Event subscriptions
- OnCompanyInitialize subscribes to Codeunit “Company-Initialize” OnCompanyInitialize
- OnRegisterCopilotCapability subscribes to Page “Copilot AI Capabilities” OnRegisterCopilotCapability
- HandleOnAfterCreatedNewCompanyByCopyCompany subscribes to Report “Copy Company” OnAfterCreatedNewCompanyByCopyCompany
Procedures
RegisterCapability()(internal)ClearPerCompanyAgentState(TargetCompanyName: Text)(internal): Wipes per-company Expense Agent runtime state in the specified company so the agent must be re-provisioned there. The Expense Agent Setup row itself is preserved (general expense configuration such as number series, posting groups, rules and rates is still meaningful in the copied company); only the…
Triggers
OnInstallAppPerCompany, OnInstallAppPerDatabase
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 7773 “Copilot Capability” (2 calls:
RegisterCapability → IsCapabilityRegistered,RegisterCapability → RegisterCapability) - Codeunit 457 “Environment Information” (1 call:
RegisterCapability → IsSaaSInfrastructure) - Codeunit 7105 “Upgrade Exp. Report VAT Spec” (1 call:
OnInstallAppPerCompany → SetBackfillReimbursementAmountsUpgradeTag)
Called by
- Codeunit 6978 “Upgrade Expense Agent Setup” (2 calls:
ClearStaleCopyCompanyStateIfNeeded → ClearPerCompanyAgentState,OnUpgradePerDatabase → RegisterCapability)
Recent changes
- 2026-08-31 #10312 Update expense VAT specification source (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: "Install Expense Agent Setup"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.