---
title: "Codeunit 104047 Upgrade Profiles, extension points 29"
author: "JOP-AL"
url: https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/points/
object: https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/
app: "Base Application"
major: 29
source: https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/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 104047 Upgrade Profiles, extension points 29

JOP-AL, https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/points/

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

## OnUpgradePerDatabase

[Line 17](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L17), trigger.

- [20](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L20) calls `UpgradeEmployeeProfile`

## UpgradeEmployeeProfile

[Line 23](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L23), local.

- [28](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L28) calls [Codeunit 9999 Upgrade Tag](https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/) `HasUpgradeTag`
- [28](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L28) calls [Codeunit 9998 Upgrade Tag Definitions](https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/) `GetEmployeeProfileUpgradeTag`
- [31](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L31) calls `CreateTenantProfile`
- [33](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L33) calls [Codeunit 9999 Upgrade Tag](https://jonas-paprotka.de/ref/codeunit/9999-upgrade-tag/) `SetUpgradeTag`
- [33](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L33) calls [Codeunit 9998 Upgrade Tag Definitions](https://jonas-paprotka.de/ref/codeunit/9998-upgrade-tag-definitions/) `GetEmployeeProfileUpgradeTag`

## CreateTenantProfile

[Line 36](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L36), local.

- [46](https://jonas-paprotka.de/ref/codeunit/104047-upgrade-profiles/source/#L46) writes [Table 2000000177 Tenant Profile](https://jonas-paprotka.de/ref/table/2000000177-tenant-profile/) Insert

## Source

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

JOP-AL, 2026-11-20.
