Application.eventUpdate Method [AX 2012]

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

Syntax

public void eventUpdate(
    Common _recordOrig, 
    Common _recordUpdated, 
    container _changedFields)

Run On

Server

Parameters

  • _recordOrig
    Type: Common Table
    The original record, before the update.
  • _changedFields
    Type: container
    A container of all changed fields.

Remarks

A developer can set up the kernel to call back on updates 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 EventUpdate. It is possible to set up that the kernel should call back whenever a record is updated or when a specific field is updated.

This is very similar to how logUpdate is called and set up.

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

See Also

Application Class

DatabaseLog Table

Application.eventDelete Method

Application.eventInsert Method

Application.eventRenameKey Method