Share via


xApplication.Eventinsert(Common) Method

Definition

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.

public:
 virtual void Eventinsert(Microsoft::Dynamics::Ax::Xpp::Common ^ recordInserted);
public virtual void Eventinsert (Microsoft.Dynamics.Ax.Xpp.Common recordInserted);
abstract member Eventinsert : Microsoft.Dynamics.Ax.Xpp.Common -> unit
override this.Eventinsert : Microsoft.Dynamics.Ax.Xpp.Common -> unit
Public Overridable Sub Eventinsert (recordInserted As Common)

Parameters

recordInserted
Common

The inserted record.

Remarks

A developer can set up the kernel to call back on inserts for a given table. This is accomplished by inserting a record into the DatabaseLog kernel table with all fields set to relevant values, which includes setting the field logType to EventInsert. This is very similar to how logInsert method is called and set up. The call of this method will be in the transaction in which the record is inserted.

Applies to