Codeunit 1800 Assisted Company Setup

Base Application, Microsoft.Utilities

Source AL, 381 lines

src/Layers/W1/BaseApp/Utilities/AssistedCompanySetup.Codeunit.allines 21 to 36 of 381, Copyright (c) Microsoft Corporation. MIT

codeunit 1800 "Assisted Company Setup"{    Permissions = tabledata "Assisted Company Setup Status" = r,                  tabledata "G/L Entry" = r;    InherentPermissions = X;    InherentEntitlements = X;    trigger OnRun()    begin    end;    var        EnableWizardErr: Label 'You cannot enable the assisted company setup for an already active company.';        NoConfigPackageFileMsg: Label 'There are no configuration package files defined in your system. Assisted company setup will not be fully functional. Please contact your system administrator.';        CreatingCompanyMsg: Label 'Creating company...';        NoPermissionsErr: Label 'You do not have permissions to create a new company. Contact your system administrator.';

All 381 lines

Events 3 in 29

[IntegrationEvent] OnBeforeCreateAccountingPeriod(StartDate: Date; var IsHandled: Boolean)new in 20
[IntegrationEvent] OnAfterAssistedCompanySetupStatusEnabled(NewCompanyName: Text[30])new in 25
[IntegrationEvent] OnSetupNewCompanyWithDemoData(NewCompanyName: Text[30]; NewCompanyData: Enum "Company Demo Data Type")new in 25

All 5 events in 17-29

Public procedures 9 in 29

ApplyUserInput(var TempConfigSetup: Record "Config. Setup" temporary; var BankAccount: Record "Bank Account"; AccountingPeriodStartDate: Date; SkipSetupCompanyInfo: Boolean)17-29
CreateAccountingPeriod(StartDate: Date)17-29
IsCompanySetupInProgress(NewCompanyName: Text): Boolean17-29
CreateNewCompany(NewCompanyName: Text[30])17-29
AddAssistedCompanySetup()17-29
GetAllowedCompaniesForCurrentUser(var TempCompany: Record Company temporary)new in 18

All 19 procedures in 17-29

Changes 14 in 25

List17181920212223242526272829
Procedures41210
Events24
GetConfigurationPackageFile(ConfigurationPackageFile: Record "Configuration Package File"): Textgone after 24
gone
WaitForPackageImportToComplete()gone after 24
gone
FillCompanyData(NewCompanyName: Text[30]; NewCompanyData: Option "Evaluation Data","Standard Data",None,"Extended Data","Full No Data")gone after 24
gone
ExistsConfigurationPackageFile(CompanyData: Option): Booleangone after 24
gone
FindConfigurationPackageFile(var ConfigurationPackageFile: Record "Configuration Package File"; CompanyData: Option): Booleangone after 24
gone
ScheduleConfigPackageImport(ConfigurationPackageFile: Record "Configuration Package File"; Name: Text)gone after 24
gone

All 23 changes in 17-29