TaskScheduler Data Type
Version: Available or changed with runtime version 1.0.
TaskScheduler is a complex data type used for creating and managing tasks in the task scheduler, which runs codeunits at scheduled times.
Static methods
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 (depends on the user/app entitlements). |
CreateTask(Integer, Integer [, Boolean] [, Text] [, DateTime] [, RecordId]) | Adds a task to be run by the task scheduler. The task is ensured to not run before the specified time. |
CreateTask(Integer, Integer, Boolean, Text, DateTime, RecordId, Duration) | Adds a task to be run by the task scheduler. The task is ensured to not run before the specified time. This method also allows you to set a timeout for the task. |
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
Task Scheduler Overview
Get Started with AL
Developing Extensions
フィードバック
https://aka.ms/ContentUserFeedback」を参照してください。
以下は間もなく提供いたします。2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub の issue を段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、「フィードバックの送信と表示