Application.eventInsert Method [AX 2012]

Serves as a callback that is called by the kernel when a record in a table is inserted, provided that the kernel has been set up to monitor records in that table.

Syntax

public void eventInsert(Common _recordInserted)

Run On

Server

Parameters

Remarks

A developer can set up the kernel to call back on inserts for a given table by inserting a record into the DatabaseLog kernel table with all fields set to relevant values, which includes the field logType set to EventInsert.

This is very similar to how Application.logInsert is called and set up.

The call of this method will be in the transaction in which the record is inserted.

See Also

Application Class

DatabaseLog Table

Application.eventDelete Method

Application.eventRenameKey Method

Application.eventUpdate Method