Record.DeleteAll([Boolean]) Method
Version: Available or changed with runtime version 1.0.
Deletes all records in a table that fall within a specified range.
Syntax
Record.DeleteAll([RunTrigger: Boolean])
Parameters
Record
Type: Record
An instance of the Record data type.
[Optional] RunTrigger
Type: Boolean
Specifies whether to run the AL code in the OnDelete Trigger. If this parameter is true, then the code in the OnDelete trigger will be executed. If this parameter is false, then the code in the OnDelete trigger will not be executed. The default value is false.
Remarks
Important
By design, the global variables of the record instance being deleted will be initialized to their default value during the DeleteAll method execution, independently of the value that was previously set.
Note
Setting RunTrigger
to false only affects the OnDelete
trigger. The OnBeforeDelete
and OnAfterDelete
triggers from table extensions will still run regardless.
See Also
Record Data Type
Get Started with AL
Developing Extensions
AL Database Methods and Performance on SQL Server
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈