codeunitPlatform, DevOps & Performanceofficial - Microsoftderived - from the source, no model text

Codeunit 2 "Company-Initialize"

Base Application · Microsoft.Foundation.Company

Across versions

  1. BC23present
  2. BC244 procedures added, 2 procedures removed
  3. BC252 events added, 1 procedures changed
  4. BC261 procedures changed
  5. BC271 events added
  6. BC28-30unchanged

Neighbourhood 49 connected objects and pages

Codeunit 6475 "Service Company Initialize" (event subscribers, 3 links)Service Company InitializeCodeunit 99000790 "Mfg. Company Initialize" (event subscribers, 2 links)Mfg. Company InitializeCodeunit 104059 "Serv. Upgrade BaseApp" (event subscribers)Codeunit 1072 "MS - PayPal Create Demo Data" (event subscribers)MS - PayPal Create Demo DataCodeunit 1160 "COHUB Install" (event subscribers)Codeunit 1436 "Headlines Install" (event subscribers)Headlines InstallCodeunit 1634 "Setup Office Host Provider" (event subscribers)Codeunit 1695 "Bank Deposit Subscribers" (event subscribers)Bank Deposit SubscribersCodeunit 1800 "Assisted Company Setup" (event subscribers)Codeunit 1855 "Sales Forecast Install" (event subscribers)Sales Forecast InstallCodeunit 1921 "QB Migration Install" (event subscribers)QB Migration InstallCodeunit 1955 "Late Payment Install" (event subscribers)Late Payment InstallCodeunit 20105 "AMC Banking Mgt." (event subscribers)AMC Banking Mgt.Codeunit 2029 "Image Analysis Install" (event subscribers)Codeunit 20373 "Register First Party Signals" (event subscribers)Register First Party SignalsCodeunit 20502 "Subc. Business Setup Ext." (event subscribers)Subc. Business Setup Ext.Codeunit 22200 "Review G/L Entry" (event subscribers)Codeunit 30273 "Shpfy Installer" (event subscribers)Codeunit 36950 "Installation Handler" (event subscribers)Codeunit 37217 "PEPPOL 3.0 Subscribers" (event subscribers)Codeunit 3999 "Reten. Pol. Install - BaseApp" (event subscribers)Codeunit 5264 "Install Audit File Export" (event subscribers)Codeunit 5288 "Install SAF-T" (event subscribers)Codeunit 5465 "Graph Mgt - General Tools" (event subscribers)Codeunit 570 "G/L Account Category Mgt." (event subscribers)Codeunit 6060 "Hybrid Deployment" (event subscribers)Codeunit 6201 "Non-Ded. VAT Impl." (event subscribers)Codeunit 6217 "Install Sustainability Setup" (event subscribers)Codeunit 6304 "Setup Azure AD Mgt. Provider" (event subscribers)Codeunit 1901 "Report Selection Mgt." (calls, 9 links)Report Selection Mgt.Codeunit 104000 "Upgrade - BaseApp" (calls, 6 links)Upgrade - BaseAppCodeunit 9179 "Application Area Mgmt. Facade" (calls, 4 links)Application Area Mgmt. FacadeCodeunit 99000790 "Mfg. Company Initialize" (calls, 2 links)Codeunit 1306 "Company Information Mgt." (calls)Codeunit 1502 "Workflow Setup" (calls)Codeunit 249 "VAT Registration Log Mgt." (calls)Codeunit 40016 "Hybrid Company Initialize" (calls)Codeunit 4030 "Client Type Management" (calls)Codeunit 457 "Environment Information" (calls)Codeunit 5382 "Company Creation Contoso" (calls)

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

Base Application · Microsoft.Foundation.Company · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Permissions TableData “Company Information” = i, TableData “General Ledger Setup” = ri, TableData “Incoming Documents Setup” = i, TableData “Sales & Receivables Setup” = i, TableData “Purchases & Payables Setup” = i, TableData “Inventory Setup” = i, TableData “Resources Setup” = i, TableData “Jobs Setup” = i, T…

Events published

Event subscriptions

  • OnAfterCompanyDeleteRemoveReferences subscribes to Table “Company” OnAfterDeleteEvent
  • CompanyInitializeOnAfterLogin subscribes to Codeunit “System Initialization” OnAfterLogin

Procedures

  • InitializeCompany() (internal)
  • InitSetupTables()
  • GetSEPACT09Code(): Code[20] + BC24
  • GetSEPADD08Code(): Code[20] + BC24
  • GetSEPACT09Name(): Text[100] + BC24
  • GetSEPADD08Name(): Text[100] + BC24
  • InsertSourceCode(var SourceCodeDefCode: Code[10]; Code: Code[10]; Description: Text[100]) Δ BC25
  • PageName(PageID: Integer): Text[100] Δ BC26
  • InsertBankExportImportSetup(CodeTxt: Text[20]; NameTxt: Text[100]; DirectionOpt: Option; CodeunitID: Integer; XMLPortID: Integer; CheckCodeunitID: Integer) Δ BC24 (internal)

Plus 11 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.

Called by

Countries that replace it

AT, CH, NO

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: "Company-Initialize"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources