---
id: object/codeunit/7447
type: object
title: Codeunit 7447 "EA Corp Card Selection Mgt"
summary: Codeunit 7447 "EA Corp Card Selection Mgt" in ExpenseAgent (Microsoft.ExpenseAgent). 13 public procedures. 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: 5241099a77f15f521194a76847eadd6913e5f508d9f08a1f84d8b39dcf6b9bb3
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/4e6a307ce8a2e8c5a28f8f0c4c2c7d561f4fe679/src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardSelectionMgt.Codeunit.al
    title: src/Apps/W1/ExpenseAgent/app/src/CorporateCard/Codeunits/EACorpCardSelectionMgt.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/13587
  related:
    - to: https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-overview
      title: Expense Agent Overview for Business Central
      label: possibly related
      why: Expense Agent manages expense data selection and processing workflow
      by: model
object_type: codeunit
object_id: 7447
name: EA Corp Card Selection Mgt
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: 16
  events: 0
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 0
  called_by: 10
  implements: 0
---

# Codeunit 7447 "EA Corp Card Selection Mgt"

> Codeunit 7447 "EA Corp Card Selection Mgt" in ExpenseAgent (Microsoft.ExpenseAgent). 13 public procedures. 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/EACorpCardSelectionMgt.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Internal |
| Permissions | tabledata "EA Corp Card" = r, tabledata "EA Corp Card Trans" = r |

## Procedures

- `ValidateExpenseCard(Expense: Record Expense; RequireCard: Boolean)` (internal)
- `ValidateCard(CardId: Code[50]; ExpenseUserNo: Code[20]; ExpenseDate: Date; ReimbursementType: Enum "Expense Reimbursement Type"; SourceRecord: RecordRef)` (internal)
- `LookupCard(var Expense: Record Expense): Boolean` (internal)
- `ValidateReportLine(ExpenseReportLine: Record "Expense Report Line"; RequireCard: Boolean)` (internal)
- `LookupReportLineCard(var ExpenseReportLine: Record "Expense Report Line"): Boolean` (internal)
- `CheckReportLineCanBeDeleted(ExpenseReportLine: Record "Expense Report Line")` (internal)
- `GetReportLineCardLookupError(var ExpenseReportLine: Record "Expense Report Line"): ErrorInfo` (internal)
- `LookupReportLineCardFromError(CardLookupError: ErrorInfo)`
- `GetCardDisplay(CardId: Code[50]): Text[150]` (internal)
- `GetCardDisplay(CardId: Code[50]; var CardDisplays: Dictionary of [Code[50], Text[150]]): Text[150]` (internal)
- `LoadReportCardDisplays(ReportNo: Code[20]; var CardDisplays: Dictionary of [Code[50], Text[150]])` (internal)
- `LoadPostedReportCardDisplays(ReportNo: Code[20]; var CardDisplays: Dictionary of [Code[50], Text[150]])` (internal)
- `GetCardDisplay(CorpCard: Record "EA Corp Card"; ProviderShortName: Text[4]): Text[150]` (internal)

Plus 3 local procedures.

## Called by

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.

- [Table 6907 "Expense Report Line"](../table/6907.md) (3 calls: `OnDelete → CheckReportLineCanBeDeleted`, `OnInsert → ValidateReportLine`, `OnModify → ValidateReportLine`)
- [Page 6993 "Posted Expense Report SubP."](../page/6993.md) (2 calls: `UpdateControls → GetCardDisplay`, `UpdateControls → LoadPostedReportCardDisplays`)
- [Page 6999 "Expense Report SubPage"](../page/6999.md) (2 calls: `UpdateControls → GetCardDisplay`, `UpdateControls → LoadReportCardDisplays`)
- [Table 6900 "Expense"](../table/6900.md) (2 calls: `OnInsert → ValidateExpenseCard`, `OnModify → ValidateExpenseCard`)
- [Codeunit 6980 "Release Expense Document"](../codeunit/6980.md) (1 call: `Code → ValidateExpenseCard`)
- [Codeunit 6984 "Release Exp. Report Document"](../codeunit/6984.md) (1 call: `CheckMandatoryFields → ValidateReportLine`)
- [Codeunit 6987 "Expense Report-Post"](../codeunit/6987.md) (1 call: `ValidateExpenseReportLineForPosting → ValidateReportLine`)
- [Page 6927 "Expenses API"](../page/6927.md) (1 call: `UpdateExpenseUserNoFromSystemId → ValidateExpenseCard`)
- [Page 6929 "Expense Report Lines API"](../page/6929.md) (1 call: `UpdateExpenseUserNoFromSystemId → ValidateReportLine`)
- [Page 6988 "Expense"](../page/6988.md) (1 call: `OnAfterGetCurrRecord → GetCardDisplay`)

## Recent changes

- 2026-11-16 [#13587 Update Corp Card manual selection](../../changes/bcapps/13587.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.

- [Expense Agent Overview for Business Central](https://learn.microsoft.com/dynamics365/business-central/expense-management/expense-agent-overview) — possibly related: Expense Agent manages expense data selection and processing workflow (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 Selection Mgt")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
