---
id: object/codeunit/20365
type: object
title: Codeunit 20365 "Use Case Archival Mgmt."
summary: Codeunit 20365 "Use Case Archival Mgmt." in INTaxEngine (Microsoft.Finance.TaxEngine.JsonExchange). 8 public procedures, 9 event subscribers. Introduced in BC29, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - intaxengine
versions:
  introduced: "29"
  last_changed: null
  deprecated: null
review:
  state: derived
  by: null
  at: null
  flags: []
generated:
  at: "2026-10-11T00:31:51.816Z"
  pipeline: 0.2.0
  prompts: {}
  input_hash: 0968206302be98de77f55ca5c064d9248873533a59ab23b05b63e71fdae0a30a
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-JsonExchange/src/Archival/UseCaseArchivalMgmt.Codeunit.al
    title: src/Apps/W1/INTaxEngine/app/TaxEngine-JsonExchange/src/Archival/UseCaseArchivalMgmt.Codeunit.al (releases/29.x)
    date: null
    commit: ea08af5ef2d6a9b5c5af4a029288abbe2c883220
    t: null
    quote: null
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
object_type: codeunit
object_id: 20365
name: Use Case Archival Mgmt.
namespace: Microsoft.Finance.TaxEngine.JsonExchange
app: INTaxEngine
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: 27
  events: 0
  subscribers: 9
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 0
  calls: 6
  called_by: 1
  implements: 0
---

# Codeunit 20365 "Use Case Archival Mgmt."

> Codeunit 20365 "Use Case Archival Mgmt." in INTaxEngine (Microsoft.Finance.TaxEngine.JsonExchange). 8 public procedures, 9 event subscribers. Introduced in BC29, still in BC30.

INTaxEngine · Microsoft.Finance.TaxEngine.JsonExchange · BC29-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Apps/W1/INTaxEngine/app/TaxEngine-JsonExchange/src/Archival/UseCaseArchivalMgmt.Codeunit.al) · facts from BC29

## Event subscriptions

- OnAfterExportModified subscribes to Page "Tax Engine Setup Wizard" OnAfterActionEvent (ExportModified)
- OnAfterValidateEnableEvent subscribes to Table "Tax Use Case" OnBeforeValidateEvent (Status)
- OnAfterExportTaxTypes subscribes to Page "Tax Types" OnAfterExportTaxTypes
- OnAfterActionExportUseCases subscribes to Codeunit "Use Case Mgmt." OnAfterExportUseCases
- OnAfterActionImportTaxTypes subscribes to Page "Tax Types" OnAfterActionEvent (ImportTaxTypes)
- OnAfterActionImportUseCases subscribes to Page "Use Cases" OnAfterActionEvent (ImportUseCase)
- OnAfterActionCopyUseCase subscribes to Page "Use Case Card" OnAfterActionEvent (CopyUseCase)
- OnAfterActionArchivedLogsFromUseCaseCard subscribes to Page "Use Case Card" OnAfterActionEvent (ArchivedLogs)
- OnAfterActionArchivedLogsFromUseCaseList subscribes to Page "Use Cases" OnAfterActionEvent (ArchivedLogs)

## Procedures

- `ShowConfigurationFile(UseCaseArchivalLogEntry: Record "Use Case Archival Log Entry")`
- `CopyUseCase(CaseId: Guid)`
- `ExportUseCases(var UseCase: Record "Tax Use Case")`
- `ImportUseCases()`
- `ExportTaxTypes(var TaxType: Record "Tax Type")`
- `ImportTaxTypes()`
- `RestoreArchivalToUse(UseCaseArchivalLogEntry: Record "Use Case Archival Log Entry")`
- `SetIfChangedByMicrosoft(NewChangedByMicrosoft: Boolean)`

Plus 10 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 20361 "Tax Json Deserialization"](../codeunit/20361.md) (8 calls: `CopyUseCase → GetCreatedCaseID`, `CopyUseCase → ImportUseCases`, `ImportTaxTypes → ImportTaxTypes`, …)
- [Codeunit 20362 "Tax Json Serialization"](../codeunit/20362.md) (6 calls: `CopyUseCase → ExportUseCases`, `CopyUseCase → SetCalledFromCopyUseCase`, `ExportTaxTypes → ExportTaxTypes`, …)
- [Codeunit 4100 "Temp Blob"](../codeunit/4100.md) (6 calls: `ExportTaxTypes → CreateInStream`, `ExportTaxTypes → CreateOutStream`, `ExportUseCases → CreateInStream`, …)
- [Codeunit 10 "Type Helper"](../codeunit/10.md) (3 calls: `ImportTaxTypes → ReadAsTextWithSeparator`, `ImportUseCases → ReadAsTextWithSeparator`, `RestoreArchivalToUse → ReadAsTextWithSeparator`)
- [Page 20308 "Use Case Card"](../page/20308.md) (2 calls: `CopyUseCase → (object)`, `RestoreUseCase → (object)`)
- [Page 20360 "Use Case Archival Log Entries"](../page/20360.md) (2 calls: `OnAfterActionArchivedLogsFromUseCaseCard → (object)`, `OnAfterActionArchivedLogsFromUseCaseList → (object)`)

## Called by

- [Codeunit 20368 "Tax Type Archival Mgmt."](../codeunit/20368.md) (2 calls: `ExportModifiedTaxTypes → ExportTaxTypes`, `OnAfterExportTaxTypes → ExportTaxTypes`)

## Across versions

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

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: "Use Case Archival Mgmt.")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
