Codeunit 6941 "EA Http Client"
ExpenseAgent · Microsoft.ExpenseAgent
Across versions
- BC23-28not present
- BC29present
- BC30changed
Neighbourhood 14 connected objects and pages
ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · source at 4e6a307c · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Internal |
Procedures
SubmitExpenseWithAttachments(ConversationId: Text; Context: Text; OnBehalfUser: Text; var TempAttachment: Record "EA Email Attachment" temporary): BooleanSendOpenReportReminderNotification(OnBehalfUser: Text): BooleanSendReimbursementNotification(OnBehalfUser: Text; PostedExpenseReportSystemId: Guid): BooleanSendWelcomeEmailNotification(OnBehalfUser: Text; CorrelationId: Guid): BooleanIsTenantOnCanaryAllowlist(): Boolean(internal)RegisterErpConfiguration(UseCanaryEndpoint: Boolean): BooleanUnregisterErpConfiguration(UseCanaryEndpoint: Boolean): BooleanGetCurrentCompanyScopeId(): Text(internal): Calculates the Expense Agent scope of the current tenant, environment and company on the fly. Uses the same identity values that are sent when the environment is registered with the service.CalculateCompanyScopeId(TenantId: Text; EnvironmentName: Text; CompanyId: Text): Text(internal): Calculates the scope as a name-based (version 5) UUID over the normalized, length-prefixed identity values.
Plus 29 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.
- Codeunit 8703 “Feature Telemetry” (13 calls:
GetExpenseAgentBaseUrl → LogError,SendErpConfigRequest → LogError,SendErpConfigRequest → LogUsage, …) - Codeunit 457 “Environment Information” (6 calls:
AddAuthHeaders → IsSaaS,BuildErpConfigJson → GetEnvironmentName,BuildErpConfigJson → IsSaaS, …) - Codeunit 4100 “Temp Blob” (2 calls:
GenerateNameBasedUuid → CreateInStream,GenerateNameBasedUuid → CreateOutStream) - Codeunit 433 “Azure AD Tenant” (2 calls:
BuildErpConfigJson → GetAadTenantId,GetCurrentCompanyScopeId → GetAadTenantId) - Codeunit 10 “Type Helper” (1 call:
GenerateNameBasedUuid → IntToHex) - Codeunit 1266 “Cryptography Management” (1 call:
GenerateNameBasedUuid → GenerateHash) - Codeunit 2200 “Azure Key Vault” (1 call:
GetProductionBaseUrl → GetAzureKeyVaultSecret) - Codeunit 501 “OAuth2” (1 call:
TryGetAccessToken → AcquireOnBehalfOfToken) - Codeunit 6300 “Azure AD Mgt.” (1 call:
TryGetAccessToken → GetAccessTokenAsSecretText) - Codeunit 6922 “Expense Agent Entra App Mgt.” (1 call:
TryGetAccessToken → GetAadAppId)
Called by
- Page 6991 “Expense Agent Setup Wizard” (3 calls:
OnOpenPage → IsTenantOnCanaryAllowlist,RegisterErpConfiguration → RegisterErpConfiguration,UnregisterErpConfiguration → UnregisterErpConfiguration) - Codeunit 6938 “EA Agent Dispatcher” (2 calls:
SendOpenReportReminders → SendOpenReportReminderNotification,TrySendWelcomeEmail → SendWelcomeEmailNotification) - Codeunit 6940 “EA Retrieve Emails” (1 call:
AddEmailToNewAgentTask → SubmitExpenseWithAttachments) - Codeunit 6987 “Expense Report-Post” (1 call:
SendReimbursementNotification → SendReimbursementNotification)
Recent changes
- 2026-11-27 #14541 [Expense Agent] Send company scope header on company-bound requests (main, BC30, feature)
- 2026-11-23 #13673 Expose active expense approver and expense app navigation (main, BC30, feature)
- 2026-10-16 #11909 Block guest users from managing Expense Agent (main, BC30, fix)
- 2026-09-29 #11993 Enable HTTP requests before Expense Agent setup (main, BC30, fix)
- 2026-09-18 #11290 [Bug 640454] Scope Expense Agent Entra permissions by company (main, BC30, fix)
- 2026-09-17 #11541 Clarify Expense Agent and expense management setup (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.
- Call external services with the HttpClient data type — possibly related: HTTP client codeunit uses HttpClient data type for external service integration (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: "codeunit", object_name: "EA Http Client"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.