RecordInsertList.new Method [AX 2012]

Creates a new object to hold records for insertion into the database.

public void new(
    TableId tableId, 
   [boolean skipInsertMethod, 
    boolean skipDatabaseLog, 
    boolean skipEvents, 
    boolean skipAosValidation, 
    boolean skipRLSValidation, 
    Common table])

Run On

Called

Parameters

tableId
Type: TableId Extended Data Type
The ID of the table containing the records to be inserted.
skipInsertMethod
Type: boolean
A Boolean that determines whether the insert method on the table should be ignored or not.
skipDatabaseLog
Type: boolean
A Boolean that determines whether the insertion is recorded in the database log.
If you do not record it in the log, performance is better.
skipEvents
Type: boolean
A Boolean that determines whether create, update, and delete events should be generated during the import operation.
If events are not generated, performance is better. However, not generating events means that alerts cannot be created for the data changes.
skipAosValidation
Type: boolean

skipRLSValidation
Type: boolean

table
Type: Common Table

The following example creates a new RecordInsertList for the EventRuleField table. The insert method for the table is executed when these records are inserted, and the insert is recorded in the database log. However, CUD events are not generated for the insertion.

recordInsertList = new RecordInsertList( 
    tablenum(EventRuleField), 
    false, 
    false, 
    true);

Community Additions

ADD
Show: