TaskScheduler Data Type

Is a complex data type for creating and managing tasks in the task scheduler, which runs codeunits at scheduled times.

The following methods are available on the TaskScheduler data type.

Method name Description
CreateTask(Integer, Integer [, Boolean] [, String] [, DateTime] [, RecordId]) Adds a task to ensure that a codeunit is not run before the specified time.
TaskExists(Guid) Checks whether a specific task exists.
CancelTask(Guid) Cancels and deletes a scheduled task that runs a specific codeunit.
SetTaskReady(Guid [, DateTime]) Sets a task that runs a codeunit to the ready state. The task will not run unless it is in the ready state.
CanCreateTask() Checks whether it is possible to schedule tasks in this session.

See Also

Getting Started with AL
Developing Extensions