Codeunit 3846 Scheduled Tasks

Base Application, System.Threading

Source AL, 65 lines

src/Layers/W1/BaseApp/Modules/System/JobQueue/ScheduledTasks.Codeunit.allines 5 to 20 of 65, Copyright (c) Microsoft Corporation. MIT

codeunit 3846 "Scheduled Tasks"{    Access = Internal;    var        SetTaskReadyDifferentCompanyTasksLbl: Label 'The task is created for company %1, and will run according to its schedule. Do you want to continue?', Comment = '%1 - Company Name';        CancelDifferentCompanyTasksLbl: Label 'The task is created for company %1. Are you sure you want to cancel it?', Comment = '%1 - Company Name';    procedure SetTasksReady(var ScheduledTasks: Record "Scheduled Task")    var        JobQueue: Record "Job Queue Entry";        ReadyTask: Boolean;    begin        repeat            if ScheduledTasks.Company <> CompanyName() then                ReadyTask := Dialog.Confirm(SetTaskReadyDifferentCompanyTasksLbl, true, ScheduledTasks.Company)

All 65 lines

Public procedures 3 in 29

SetTasksReady(var ScheduledTasks: Record "Scheduled Task")new in 18
CancelTasks(var ScheduledTasks: Record "Scheduled Task")new in 18
IsTenantSpecific(var ScheduledTask: Record "Scheduled Task"): Booleannew in 18