---
id: object/codeunit/150
type: object
title: Codeunit 150 "System Initialization"
summary: Codeunit 150 "System Initialization" in System Application (System.Environment.Configuration). 2 public procedures, 3 events. Present since at least BC23, still in BC30.
tier: official
language: en
tags:
  - codeunit
  - system application
versions:
  introduced: null
  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: 24490e7c1de3058f8767aad06bac7e95eb9ec717987600188071ec05c47e0976
evidence:
  - kind: code
    url: https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/System%20Initialization/src/SystemInitialization.Codeunit.al
    title: src/System Application/App/System Initialization/src/SystemInitialization.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: 150
name: System Initialization
namespace: System.Environment.Configuration
app: System Application
extends: null
first_version: "23"
last_version: "30"
present_in:
  - "23"
  - "24"
  - "25"
  - "26"
  - "27"
  - "28"
  - "29"
  - "30"
changed_in: []
source_major: "29"
obsolete: null
countries: []
ms_search_form_ids: []
counts:
  fields: 0
  procedures: 5
  events: 3
  subscribers: 0
relations:
  out: 0
  referenced_by: 0
  pages: 0
  extended_by: 0
  event_subscribers: 17
  calls: 1
  called_by: 8
  implements: 0
---

# Codeunit 150 "System Initialization"

> Codeunit 150 "System Initialization" in System Application (System.Environment.Configuration). 2 public procedures, 3 events. Present since at least BC23, still in BC30.

System Application · System.Environment.Configuration · BC23-30 · [source at ea08af5e](https://github.com/microsoft/BCApps/blob/ea08af5ef2d6a9b5c5af4a029288abbe2c883220/src/System%20Application/App/System%20Initialization/src/SystemInitialization.Codeunit.al) · facts from BC29

## Properties

| Property | Value |
|---|---|
| Access | Public |

## Events published

- `OnAfterInitialization()` (integration): Integration event for after the system initialization. Used only for login.
  - subscribers: [Codeunit 3315 "PA Session Events"](../codeunit/3315.md) RegisterSubscribersOnAfterLogin, [Codeunit 40 "LogInManagement"](../codeunit/40.md) OnCompanyOpen, [Codeunit 4304 "SOA Session Events"](../codeunit/4304.md) RegisterSubscribersOnAfterLogin, [Codeunit 6908 "Expense Event Subscriber"](../codeunit/6908.md) ValidateExpenseAgentLoginNotAllowed
- `OnAfterLogin()` (integration): Integration event for after the login. Subscribe to this event in order to execute additional initialization steps.
  - subscribers: [Codeunit 1350 "Telemetry Management"](../codeunit/1350.md) ScheduleDailyTelemetryAfterCompanyOpen, [Codeunit 151 "System Initialization Impl."](../codeunit/151.md) CreateOrUpdateLoginInfoOnAfterLogin, [Codeunit 1738 "OData Initializer"](../codeunit/1738.md) OnAfterLogin, [Codeunit 1800 "Assisted Company Setup"](../codeunit/1800.md) OnAfterCompanyOpenRunAssistedCompanySetup, [Codeunit 1997 "Checklist Events"](../codeunit/1997.md) OnAfterLogIn, [Codeunit 2 "Company-Initialize"](../codeunit/2.md) CompanyInitializeOnAfterLogin, [Codeunit 20419 "Qlty. Guided Experience"](../codeunit/20419.md) InitializeChecklistOnAfterLogIn, [Codeunit 280 "My Records Demo Setup"](../codeunit/280.md) OnAfterLoginSubscriber, [Codeunit 30201 "Shpfy Guided Experience"](../codeunit/30201.md) InitializeChecklistOnAfterLogIn, [Codeunit 4304 "SOA Session Events"](../codeunit/4304.md) RegisterSubscribersOnAfterLogout, [Codeunit 4360 "Custom Agent Session"](../codeunit/4360.md) OnAfterCustomAgentLogin, [Codeunit 5153 "API - Upd. Ref. Fields Binder"](../codeunit/5153.md) OnAfterCompanyOpen
- `OnSetSignupContext(SignupContext: Record "Signup Context"; var SignupContextValues: Record "Signup Context Values")` (integration): Subscribe to this event to set the Signup Context and parse additional values.
  - subscribers: [Codeunit 30201 "Shpfy Guided Experience"](../codeunit/30201.md) SetShopifyContextOnSetSignupContext

## Procedures

- `IsInProgress(): Boolean`: Checks whether the system initialization is currently in progress.
- `ShouldCheckSignupContext(): Boolean`: Checks whether the signup context should be considered or whether it has expired.

## 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 151 "System Initialization Impl."](../codeunit/151.md) (2 calls: `IsInProgress → IsInProgress`, `ShouldCheckSignupContext → ShouldCheckSignupContext`)

## Called by

- [Codeunit 151 "System Initialization Impl."](../codeunit/151.md) (2 calls: `Init → OnAfterInitialization`, `InitCompany → OnAfterLogin`)
- [Codeunit 3909 "Retention Policy Log Impl."](../codeunit/3909.md) (2 calls: `CreateTempLogEntry → IsInProgress`, `InsertLogEntryInBackgroundSession → IsInProgress`)
- [Codeunit 1520 "Workflow Event Handling"](../codeunit/1520.md) (1 call: `AddEventToLibrary → IsInProgress`)
- [Codeunit 1521 "Workflow Response Handling"](../codeunit/1521.md) (1 call: `AddResponseToLibrary → IsInProgress`)
- [Codeunit 1997 "Checklist Events"](../codeunit/1997.md) (1 call: `OnAfterLogIn → ShouldCheckSignupContext`)
- [Codeunit 7201 "CDS Integration Impl."](../codeunit/7201.md) (1 call: `ShowError → IsInProgress`)
- [Codeunit 7205 "CDS Int. Table. Subscriber"](../codeunit/7205.md) (1 call: `ShowError → IsInProgress`)
- [Table 5330 "CRM Connection Setup"](../table/5330.md) (1 call: `ShowError → IsInProgress`)

## Across versions

- Present in: BC23-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: "System Initialization")`, then `bcatlas_get_procedure_body` or `bcatlas_get_neighbors` on the returned id.
