INSERT and INSERT(TRUE) in D365 BC:
(1) Introduction: When records enter in the tables via “AL” then the INSERT method is used. Note: when inserting records in a table, first initialize the table with method INIT.
(2) Syntax:
[Ok:= ] Record.Insert([RunTrigger: Boolean[, InsertWithSystemId: Boolean]]) |
(3) You can use this method in different types, as shown below-
- RECORD.INSERT: Only Insert record in table.

- RECORD.INSERT(TRUE): Insert record in table with validating INSERT trigger of table.

- RECORD.INSERT(False,True): Insert record in table with allowing to create own SYSTEMID.
