---
id: object/codeunit/9994
type: object
title: Codeunit 9994 "API Data Upgrade"
summary: Codeunit 9994 "API Data Upgrade" in Base Application (Microsoft.API.Upgrade). 25 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC24, BC26.
tier: official
language: en
tags:
  - codeunit
  - base application
versions:
  introduced: null
  last_changed: "26"
  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: a69152f1b9a76055441c824b61edc91430017490ad0201ee1dbe93d59dc3b159
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/API/Upgrade/APIDataUpgrade.Codeunit.al
    title: src/Layers/W1/BaseApp/System/API/Upgrade/APIDataUpgrade.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: 9994
name: API Data Upgrade
namespace: Microsoft.API.Upgrade
app: Base Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in:
  - "24"
  - "26"
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 33
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 1
  calls: 17
  called_by: 12
  implements: 0
---

# Codeunit 9994 "API Data Upgrade"

> Codeunit 9994 "API Data Upgrade" in Base Application (Microsoft.API.Upgrade). 25 public procedures, 3 events. Present since at least BC23, still in BC30, changed in BC24, BC26.

Base Application · Microsoft.API.Upgrade · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/Layers/W1/BaseApp/System/API/Upgrade/APIDataUpgrade.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Permissions | TableData "Sales Shipment Header" = rm, TableData "Sales Shipment Line" = rm, TableData "Purch. Rcpt. Header" = r, TableData "Purch. Rcpt. Line" = rm |

## Events published

- `OnGetAPIUpgradeTags(var APIUpgradeTags: Dictionary of [Code[250], Text[250]])` (integration)
  - subscribers: [Codeunit 9998 "Upgrade Tag Definitions"](../codeunit/9998.md) RegisterAPIUpgradeTags
- `OnGetAPIDataUpgradeEntities(var APIDataUpgradeEntities: Dictionary of [Code[250], Text[250]])` (integration)
- `OnAPIDataUpgrade(APIUpgradeTag: Code[250])` (integration)

## Procedures

- `UpgradeSalesCreditMemoReasonCode(CheckRecordCount: Boolean)`
- `UpgradeSalesInvoiceShortcutDimension(CheckRecordCount: Boolean)`
- `UpgradePurchInvoiceShortcutDimension(CheckRecordCount: Boolean)`
- `UpgradePurchaseOrderShortcutDimension(CheckRecordCount: Boolean)`
- `UpgradeSalesOrderShortcutDimension(CheckRecordCount: Boolean)`
- `UpgradeSalesQuoteShortcutDimension(CheckRecordCount: Boolean)`
- `UpgradeSalesCrMemoShortcutDimension(CheckRecordCount: Boolean)`
- `UpgradeItemPostingGroups(CheckRecordCount: Boolean)`
- `UpgradeSalesShipmentLineDocumentId(CheckRecordCount: Boolean)`
- `UpgradeSalesShipmentCustomerId()`
- `UpgradeFixedAssetLocationId()`
- `UpgradeFixedAssetResponsibleEmployeeId()`
- `UpdateItemVariants()`
- `UpgradeDefaultDimensions()`
- `UpgradeDimensionValues()`
- `UpgradeGLAccountAPIType()`
- `UpgradePurchRcptLineDocumentId(CheckRecordCount: Boolean)`
- `UpgradePurchaseCreditMemoVendorCrMemoNo()` (internal)
- `UpgradeSalesOrderShipmentMethod()` (internal)
- `UpgradeSalesCrMemoShipmentMethod()` (internal)
- `GetAPIUpgradeTags(var APIUpgradeTags: Dictionary of [Code[250], Text[250]])`
- `SetStatus(var APIDataUpgrade: Record "API Data Upgrade"; Status: Option)`
- `GetAPIDataUpgradeEntities(var APIDataUpgradeEntities: Dictionary of [Code[250], Text[250]])`
- `CountRecordsAndCommit(var RecordCount: Integer)`
- `GetDisableAPIDataUpgradesTag(): Code[250]` (internal)

Plus 5 local procedures.

## Triggers

OnRun

## 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 457 "Environment Information"](../codeunit/457.md) (10 calls: `UpgradeItemPostingGroups → IsSaaS`, `UpgradePurchaseOrderShortcutDimension → IsSaaS`, `UpgradePurchInvoiceShortcutDimension → IsSaaS`, …)
- [Codeunit 9999 "Upgrade Tag"](../codeunit/9999.md) (3 calls: `OnRun → SetSkippedUpgrade`, `UpgradePurchaseCreditMemoBuffer → HasUpgradeTag`, `UpgradePurchaseCreditMemoBuffer → SetUpgradeTag`)
- [Codeunit 5477 "Sales Invoice Aggregator"](../codeunit/5477.md) (2 calls: `OnRun → FixInvoicesCreatedFromOrders`, `OnRun → UpdateAggregateTableRecords`)
- [Codeunit 5496 "Graph Mgt - Sales Order Buffer"](../codeunit/5496.md) (2 calls: `OnRun → DeleteOrphanedRecords`, `OnRun → UpdateBufferTableRecords`)
- [Codeunit 5497 "Graph Mgt - Purch Order Buffer"](../codeunit/5497.md) (2 calls: `OnRun → DeleteOrphanedRecords`, `OnRun → UpdateBufferTableRecords`)
- [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) (2 calls: `OnRun → FixInvoicesCreatedFromOrders`, `OnRun → UpdateAggregateTableRecords`)
- [Codeunit 5011 "Graph Mgt - Vendor Payments"](../codeunit/5011.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5470 "Graph Collection Mgt - Item"](../codeunit/5470.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5471 "Graph Mgt - Customer"](../codeunit/5471.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5472 "Graph Mgt - Vendor"](../codeunit/5472.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5474 "Graph Mgt - Sales Header"](../codeunit/5474.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5478 "Graph Mgt - Journal Lines"](../codeunit/5478.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5479 "Graph Mgt - Customer Payments"](../codeunit/5479.md) (1 call: `OnRun → UpdateIds`)
- [Codeunit 5506 "Graph Mgt - Sales Quote Buffer"](../codeunit/5506.md) (1 call: `OnRun → UpdateBufferTableRecords`)
- [Codeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) (1 call: `OnRun → UpdateBufferTableRecords`)
- [Codeunit 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) (1 call: `UpgradePurchaseCreditMemoBuffer → UpdateBufferTableRecords`)
- [Codeunit 9998 "Upgrade Tag Definitions"](../codeunit/9998.md) (1 call: `UpgradePurchaseCreditMemoBuffer → GetPurchaseCreditMemoUpgradeTag`)

## Called by

- [Codeunit 104000 "Upgrade - BaseApp"](../codeunit/104000.md) (11 calls: `UpgradeAPIs → GetDisableAPIDataUpgradesTag`, `UpgradePurchaseOrderShortcutDimension → UpgradePurchaseOrderShortcutDimension`, `UpgradePurchInvoiceShortcutDimension → UpgradePurchInvoiceShortcutDimension`, …)
- [Codeunit 5523 "API Fix Document Shortcut Dim."](../codeunit/5523.md) (6 calls: `UpgradePurchaseOrderShortcutDimension → UpgradePurchaseOrderShortcutDimension`, `UpgradePurchInvoiceShortcutDimension → UpgradePurchInvoiceShortcutDimension`, `UpgradeSalesCrMemoShortcutDimension → UpgradeSalesCrMemoShortcutDimension`, …)
- [Table 9994 "API Data Upgrade"](../table/9994.md) (2 calls: `Load → GetAPIDataUpgradeEntities`, `Load → GetAPIUpgradeTags`)
- [Codeunit 5477 "Sales Invoice Aggregator"](../codeunit/5477.md) (1 call: `UpdateAggregateTableRecords → CountRecordsAndCommit`)
- [Codeunit 5496 "Graph Mgt - Sales Order Buffer"](../codeunit/5496.md) (1 call: `UpdateBufferTableRecords → CountRecordsAndCommit`)
- [Codeunit 5497 "Graph Mgt - Purch Order Buffer"](../codeunit/5497.md) (1 call: `UpdateBufferTableRecords → CountRecordsAndCommit`)
- [Codeunit 5506 "Graph Mgt - Sales Quote Buffer"](../codeunit/5506.md) (1 call: `UpdateBufferTableRecords → CountRecordsAndCommit`)
- [Codeunit 5508 "Graph Mgt - Sal. Cr. Memo Buf."](../codeunit/5508.md) (1 call: `UpdateBufferTableRecords → CountRecordsAndCommit`)
- [Codeunit 5511 "Graph Mgt - Purch. Cr. Memo"](../codeunit/5511.md) (1 call: `UpdateBufferTableRecords → CountRecordsAndCommit`)
- [Codeunit 5519 "API Fix Sales Cr. Memo"](../codeunit/5519.md) (1 call: `OnRun → UpgradeSalesCreditMemoReasonCode`)
- [Codeunit 5529 "Purch. Inv. Aggregator"](../codeunit/5529.md) (1 call: `UpdateAggregateTableRecords → CountRecordsAndCommit`)
- [Page 9998 "API Data Upgrade Companies"](../page/9998.md) (1 call: `UpdateStatusText → GetDisableAPIDataUpgradesTag`)

## Across versions

- Present in: BC23-30
- Changed (declaration) in: BC24, BC26

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: "API Data Upgrade")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
