---
id: object/codeunit/7434
type: object
title: Codeunit 7434 "EA Corp Card Data Exch Prov"
summary: Codeunit 7434 "EA Corp Card Data Exch Prov" in ExpenseAgent (Microsoft.ExpenseAgent). 5 public procedures, 3 events. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - expenseagent
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-12-06T00:48:06.827Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 9a90bc169d0b55bc49c63de7891335ac0482bc86b00b3103a56ad2178e462d03
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardDataExchProv.Codeunit.al
    title: src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardDataExchProv.Codeunit.al (releases/29.x)
    date: null
    commit: 4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes:
    - change/bcapps/14241
    - change/bcapps/12147
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-onafterdocumentdownload-event
      title: OnAfterDocumentDownload Event
      label: possibly related
      why: Data exchange provider that handles document download events and content injection for receipt processing
      by: model
object_type: codeunit
object_id: 7434
name: EA Corp Card Data Exch Prov
namespace: Microsoft.ExpenseAgent
app: ExpenseAgent
extends: null
first_version: "29"
last_version: "30"
present_in:
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 41
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 8
  called_by: 1
  implements: 1
---

# Codeunit 7434 "EA Corp Card Data Exch Prov"

> Codeunit 7434 "EA Corp Card Data Exch Prov" in ExpenseAgent (Microsoft.ExpenseAgent). 5 public procedures, 3 events. Introduced in BC29, still in BC30.

ExpenseAgent · Microsoft.ExpenseAgent · BC29-30 · [source at 4e6a307c](https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardDataExchProv.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "Data Exch." = rimd, tabledata "Data Exch. Column Def" = r, tabledata "Data Exch. Def" = rm, tabledata "Data Exch. Mapping" = rimd, tabledata "Data Exch. Field" = rimd, tabledata "Data Exch. Field Mapping" = r, tabledata "EA Corp Card Trans Detail" = rimd |

## Events published

- `OnAfterDownload(CorpCardProvider: Record "EA Corp Card Provider"; var CorpCardStatement: Record "EA Corp Card Statement"; var DataExch: Record "Data Exch.")` (integration)
- `OnBeforeInjectSourceContent(CorpCardProvider: Record "EA Corp Card Provider"; CorpCardStatement: Record "EA Corp Card Statement"; var TempBlob: Codeunit "Temp Blob"; var SourceFileName: Text[250]; var Handled: Boolean)` (integration)
- `OnAfterAck(StatementEntryNo: Integer)` (integration)

## Procedures

- `Download(var CorpCardStatement: Record "EA Corp Card Statement")`
- `SetSourceFile(var CorpCardStatement: Record "EA Corp Card Statement"; SourceInStream: InStream; SourceFileName: Text)` (internal)
- `ParseToStaging(StatementEntryNo: Integer)`
- `Ack(StatementEntryNo: Integer)`
- `ParseCsvFields(LineTxt: Text): List of [Text]` (internal)

Plus 33 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 7435 "EA Corp Card Validate Mgt"](../codeunit/7435.md) (5 calls: `MapCsvLineToTrans → TrySetCardLast4`, `MapDataExchToTrans → TrySetCardLast4`, `MapDataExchToTrans → ValidateTrans`, …)
- [Codeunit 1201 "Process Data Exch."](../codeunit/1201.md) (2 calls: `MapDataExchToTrans → NegateAmounts`, `MapDataExchToTrans → SetField`)
- [Codeunit 7436 "EA Corp Card Dedup Mgt"](../codeunit/7436.md) (2 calls: `MapDataExchToTrans → IsDuplicate`, `ParseCsvPayloadToTrans → IsDuplicate`)
- [Codeunit 7442 "EA Create Corp Card Setup"](../codeunit/7442.md) (2 calls: `CreateDataExchange → EnsureDataExchangeForProvider`, `ParseToStaging → EnsureDataExchangeForProvider`)
- [Codeunit 7444 "EA Corp Card Error Context"](../codeunit/7444.md) (2 calls: `MarkAllRowsRejected → SetErrorInfo`, `RaiseProviderSetupError → SetErrorInfo`)
- [Codeunit 1266 "Cryptography Management"](../codeunit/1266.md) (1 call: `SetFileContent → GenerateHash`)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (1 call: `InjectSourceContent → CreateInStream`)
- [Codeunit 7437 "EA Corp Card Map Mgt"](../codeunit/7437.md) (1 call: `ParseToStaging → ValidateMandatoryFieldMappings`)

## Called by

- [Codeunit 7432 "EA Corp Card Import Orch"](../codeunit/7432.md) (1 call: `RunFileImport → SetSourceFile`)

## Implements

- [Interface "EA Corp Card Provider"](../interface/ea-corp-card-provider.md)

## Recent changes

- 2026-11-27 [#14241 [Expense Agent] Fix corporate card data integrity](../../changes/bcapps/14241.md) (main, BC30, fix)
- 2026-10-28 [#12147 Bugs/add corp card basics](../../changes/bcapps/12147.md) (main, BC30, feature, added)

## Across versions

- Present in: BC29-30
- Changed (declaration) in: none

## Possibly related

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

- [OnAfterDocumentDownload Event](https://learn.microsoft.com/dynamics365/business-central/dev-itpro/developer/devenv-onafterdocumentdownload-event) — possibly related: Data exchange provider that handles document download events and content injection for receipt processing (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 Corp Card Data Exch Prov")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
