---
title: "Codeunit 2 Company-Initialize"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2-company-initialize/
type: codeunit
id: 2
name: "Company-Initialize"
app: "Base Application"
namespace: Microsoft.Foundation.Company
versions: "17-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2-company-initialize/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2 Company-Initialize

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2-company-initialize/

| | |
| --- | --- |
| App | Base Application |
| Namespace | Microsoft.Foundation.Company |
| Versions | 17-28 |
| Source file | Foundation/Company/CompanyInitialize.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| InitSetupTables | () | - | public | 17-28 | - | - |
| InitializeCompany | () | - | internal | 20-28 | - | - |
| GetSEPACT09Code | () | Code[20] | public | 24-28 | - | - |
| GetSEPADD08Code | () | Code[20] | public | 24-28 | - | - |
| GetSEPACT09Name | () | Text[100] | public | 24-28 | - | - |
| GetSEPADD08Name | () | Text[100] | public | 24-28 | - | - |
| InsertBankExportImportSetup | (Text[20], Text[100], Option, Integer, Integer, Integer) | - | internal | 24-28 | - | - |
| InsertSourceCode | (var Code[10], Code[10], Text[100]) | - | public | 25-28 | - | - |
| PageName | (Integer) | Text[100] | public | 26-28 | - | - |

## Events

| Kind | Name | Parameters | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- |
| Integration event | OnBeforeOnRun | () | 17-28 | - | - |
| Integration event | OnCompanyInitialize | () | 17-28 | - | - |
| Integration event | OnAfterInitSetupTables | () | 21-28 | - | - |
| Integration event | OnAfterInitElectronicFormats | () | 25-28 | - | - |
| Integration event | OnBeforeSourceCodeSetupInsert | (var Record Source Code Setup) | 25-28 | - | - |
| Integration event | OnAfterInitBankExportImportSetup | () | 27-28 | - | - |

## Source

Symbols: Microsoft.BaseApplication.symbols.437dbf0e-84ff-417a-965d-ed2bb9650972, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
