Record.Insert(Boolean) Method

Version: Available or changed with runtime version 1.0.

Inserts a record into a table.

Syntax

[Ok := ]  Record.Insert(RunTrigger: Boolean)

Parameters

Record
 Type: Record
An instance of the Record data type.

RunTrigger
 Type: Boolean
If this parameter is true, the code in the OnInsert Trigger is executed. If this parameter is false, the code in the OnInsert trigger is not executed. The default value is false.

Return Value

[Optional] Ok
 Type: Boolean
true if the operation was successful; otherwise false. If you omit this optional return value and the operation does not execute successfully, a runtime error will occur.

Record Data Type
Get Started with AL
Developing Extensions