ALAppExtensions
ALAppExtensions copied to clipboard
[Event Request] codeunit 1800 "Assisted Company Setup" - multiple publishers
Hello, would it be possible to add OnScheduleConfigPackageImportOnBeforeStartSession event to codeunit 1800 "Assisted Company Setup", like this:
procedure ScheduleConfigPackageImport(ConfigurationPackageFile: Record "Configuration Package File"; Name: Text)
...
Commit();
"Task ID" := CreateGuid();
ImportSessionID := 0;
IsHandled := false;
> OnScheduleConfigPackageImportOnBeforeStartSession(IsHandled);//New Event
if not IsHandled then
StartSession(ImportSessionID, CODEUNIT::"Import Config. Package File", "Company Name", ConfigurationPackageFile);
end;
"Company Setup Session ID" := ImportSessionID;
[IntegrationEvent(false, false)]
local procedure OnScheduleConfigPackageImportOnBeforeStartSession(var IsHandled: Boolean)
begin
end;
Hello @alapenas Could you use existing OnBeforeScheduleTask(DoNotScheduleTask, TaskID, ImportSessionID); where with DoNotScheduleTask = true, system will not call StartSession?
Hi @AleksandricMarko Thanks for the suggestion.