Codeunit 2 "Company-Initialize"
Base Application · Microsoft.Foundation.Company
Across versions
- BC23present
- BC244 procedures added, 2 procedures removed
- BC252 events added, 1 procedures changed
- BC261 procedures changed
- BC271 events added
- BC28-30unchanged
Neighbourhood 49 connected objects and pages
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
OnBeforeOnRun()(integration)- subscribers: Codeunit 30273 “Shpfy Installer” AddAllowedTablesOnAfterSystemInitialization, Codeunit 3999 “Reten. Pol. Install - BaseApp” AddAllowedTablesOnBeforeCompanyInit
OnCompanyInitialize()(integration)- subscribers: Codeunit 104059 “Serv. Upgrade BaseApp” SetDefaultsOnCompanyInitialize, Codeunit 1072 “MS - PayPal Create Demo Data” CompanyInitialize, Codeunit 1160 “COHUB Install” OnCompanyInitialize, Codeunit 1436 “Headlines Install” CompanyInitialize, Codeunit 1634 “Setup Office Host Provider” InitSetup, Codeunit 1695 “Bank Deposit Subscribers” SetUpBankdepositsOnCompanyInitialize, Codeunit 1800 “Assisted Company Setup” OnCompanyInitialize, Codeunit 1855 “Sales Forecast Install” CompanyInitialize, Codeunit 1921 “QB Migration Install” CompanyInitialize, Codeunit 1955 “Late Payment Install” CompanyInitialize, Codeunit 20105 “AMC Banking Mgt.” AMCBankOnCompanyInitialize, Codeunit 2029 “Image Analysis Install” CompanyInitialize, Codeunit 20373 “Register First Party Signals” OnCompanyInitialize, Codeunit 20502 “Subc. Business Setup Ext.” OnCompanyInitialize, Codeunit 36950 “Installation Handler” OnCompanyInitialize, Codeunit 37217 “PEPPOL 3.0 Subscribers” CompanyInitialize_OnAfterInitElectronicFormats, Codeunit 5264 “Install Audit File Export” CompanyInitialize, Codeunit 5288 “Install SAF-T” CompanyInitialize, Codeunit 5465 “Graph Mgt - General Tools” InitDemoCompanyApisForSaaS, Codeunit 570 “G/L Account Category Mgt.” OnInitializeCompany, and 11 more
OnAfterInitSetupTables()(integration)- subscribers: Codeunit 22200 “Review G/L Entry” OnAfterInitSetupTables, Codeunit 6475 “Service Company Initialize” OnAfterInitSetupTables, Codeunit 99000790 “Mfg. Company Initialize” OnAfterInitSetupTables
OnAfterInitElectronicFormats()+ BC25 (integration)- subscribers: Codeunit 6475 “Service Company Initialize” OnAfterInitElectronicFormats
OnAfterInitBankExportImportSetup()+ BC27 (integration)OnBeforeSourceCodeSetupInsert(var SourceCodeSetup: Record "Source Code Setup")+ BC25 (integration)- subscribers: Codeunit 6475 “Service Company Initialize” OnBeforeSourceCodeSetupInsert, Codeunit 99000790 “Mfg. Company Initialize” OnBeforeSourceCodeSetupInsert
Event subscriptions
- OnAfterCompanyDeleteRemoveReferences subscribes to Table “Company” OnAfterDeleteEvent
- CompanyInitializeOnAfterLogin subscribes to Codeunit “System Initialization” OnAfterLogin
Procedures
InitializeCompany()(internal)InitSetupTables()GetSEPACT09Code(): Code[20]+ BC24GetSEPADD08Code(): Code[20]+ BC24GetSEPACT09Name(): Text[100]+ BC24GetSEPADD08Name(): Text[100]+ BC24InsertSourceCode(var SourceCodeDefCode: Code[10]; Code: Code[10]; Description: Text[100])Δ BC25PageName(PageID: Integer): Text[100]Δ BC26InsertBankExportImportSetup(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.
- Codeunit 1901 “Report Selection Mgt.” (9 calls:
InitReportSelection → InitReportSelectionBank,InitReportSelection → InitReportSelectionCust,InitReportSelection → InitReportSelectionInvt, …) - Codeunit 9179 “Application Area Mgmt. Facade” (4 calls:
InitApplicationAreasForSaaS → GetExperienceTierCurrentCompany,InitApplicationAreasForSaaS → RefreshExperienceTierCurrentCompany,InitApplicationAreasForSaaS → SaveExperienceTierCurrentCompany, …) - Codeunit 1306 “Company Information Mgt.” (1 call:
InitApplicationAreasForSaaS → IsDemoCompany) - Codeunit 1502 “Workflow Setup” (1 call:
OnRun → InitWorkflow) - Codeunit 249 “VAT Registration Log Mgt.” (1 call:
OnRun → InitServiceSetup) - Codeunit 4030 “Client Type Management” (1 call:
CompanyInitializeOnAfterLogin → GetCurrentClientType) - Codeunit 457 “Environment Information” (1 call:
InitApplicationAreasForSaaS → IsSaaS) - Codeunit 9999 “Upgrade Tag” (1 call:
OnRun → SetAllUpgradeTags)
Called by
- Codeunit 104000 “Upgrade - BaseApp” (6 calls:
UpgradeBankExportImportSetup → GetSEPACT09Code,UpgradeBankExportImportSetup → GetSEPACT09Name,UpgradeBankExportImportSetup → GetSEPADD08Code, …) - Codeunit 99000790 “Mfg. Company Initialize” (2 calls:
OnBeforeSourceCodeSetupInsert → InsertSourceCode,OnBeforeSourceCodeSetupInsert → PageName) - Codeunit 40016 “Hybrid Company Initialize” (1 call:
OnRun → (object)) - Codeunit 5382 “Company Creation Contoso” (1 call:
OnRun → (object)) - Codeunit 6475 “Service Company Initialize” (1 call:
OnBeforeSourceCodeSetupInsert → InsertSourceCode)
Countries that replace it
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.