---
title: "Codeunit 104070 Upgrade Refs To Rem. Tables, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/points/
object: https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/
checked: 2026-11-20
changed: 2026-10-05
subject: "Microsoft Dynamics 365 Business Central"
license: "Metadata from Microsoft's symbol packages. AL source MIT, Copyright (c) Microsoft Corporation. Selection and wording © 2026 JOP-AL. https://jonas-paprotka.de/licenses/"
---

# Codeunit 104070 Upgrade Refs To Rem. Tables, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/points/

3 procedures and triggers with a step in src/Layers/W1/BaseApp/OtherCapabilities/Upgrade/UpgradeRefsToRemTables.Codeunit.al, in source order, read from the text, not from a run.

## OnUpgradePerCompany

[Line 16](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L16), trigger.

- [21](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L21) calls [Codeunit 6060 Hybrid Deployment](https://jonas-paprotka.de/ref/codeunit/6060-hybrid-deployment/) `VerifyCanStartUpgrade`
- [27](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L27) calls `GetRemovedTablesFilter`
- [28](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L28) calls `CleanUpChangeLogSetup`

## CleanUpChangeLogSetup

[Line 31](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L31), local.

- [36](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L36) writes [Table 403 Change Log Setup (Table)](https://jonas-paprotka.de/ref/table/403-change-log-setup-table/) DeleteAll

## GetRemovedTablesFilter

[Line 39](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L39), local.

- [47](https://jonas-paprotka.de/ref/codeunit/104070-upgrade-refs-to-rem-tables/source/#L47) calls [Codeunit 46 SelectionFilterManagement](https://jonas-paprotka.de/ref/codeunit/46-selectionfiltermanagement/) `GetSelectionFilter`

## Source

AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at 4303e5e584d3aa5d9e98cbc615525a5396ad6ed7.

JOP-AL, 2026-11-20.
