TaskScheduler Data Type

Version: Available or changed with runtime version 1.0.

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
CancelTask(Guid) Cancels and deletes a scheduled task that runs a specific codeunit.
CanCreateTask() Checks whether it is possible to schedule tasks in this session.
CreateTask(Integer, Integer [, Boolean] [, Text] [, DateTime] [, RecordId]) Adds a task to ensure that a codeunit is not run before the specified time.
CreateTask(Integer, Integer, Boolean, Text, DateTime, RecordId, Duration) Adds a task to ensure that a codeunit is not run before the specified time.
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.
TaskExists(Guid) Checks whether a specific task exists.

See Also

Get Started with AL
Developing Extensions