Share via


Application.eventDelete Method [AX 2012]

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

Syntax

public void eventDelete(Common _recordDeleted)

Run On

Server

Parameters

Remarks

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

This is very similar to how the logDelete is called and set up.

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

See Also

Application Class

DatabaseLog Table

Application.eventRenameKey Method

Application.eventUpdate Method