Share via


xApplication.Eventrenamekey(Common, Common, Object[]) Method

Definition

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

public:
 virtual void Eventrenamekey(Microsoft::Dynamics::Ax::Xpp::Common ^ recordOrig, Microsoft::Dynamics::Ax::Xpp::Common ^ recordUpdated, cli::array <System::Object ^> ^ changedFields);
public virtual void Eventrenamekey (Microsoft.Dynamics.Ax.Xpp.Common recordOrig, Microsoft.Dynamics.Ax.Xpp.Common recordUpdated, object[] changedFields);
abstract member Eventrenamekey : Microsoft.Dynamics.Ax.Xpp.Common * Microsoft.Dynamics.Ax.Xpp.Common * obj[] -> unit
override this.Eventrenamekey : Microsoft.Dynamics.Ax.Xpp.Common * Microsoft.Dynamics.Ax.Xpp.Common * obj[] -> unit
Public Overridable Sub Eventrenamekey (recordOrig As Common, recordUpdated As Common, changedFields As Object())

Parameters

recordOrig
Common

A container of all changed fields.

recordUpdated
Common

A container of all changed fields.

changedFields
Object[]

A container of all changed fields.

Remarks

A developer can set up the kernel to call back on primary key renames 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 EventRenameKey. This is very similar to how the logRenameKey method is called and set up. The call of this method will be in the transaction in which the primary key is renamed.

Applies to