getChangedRecordData in onRecordInsert Table Event

Is there a method to get the old data from onRecordInsert method in table event?

Hi Erik,

What old data should that be since you are inserting a new record ? :)

ROCLASI:
Hi Erik,

What old data should that be since you are inserting a new record ? :)

You’re right.

Let me clarify that. I was pertaining to afterRecord* Event methods of a dbi file.

Is there a method to get the old data from afterRecord* method in table event? Thanks.

I don’t think you can get the old data. At least in my dealings with these events I haven’t seen a way to do that.
Perhaps Rob/Johan can clarify.

Erik,

Both the pre- and post-update triggers receive the record being updated.
From the record you can get the old data via record.getChangedData() which returns the outstanding (not saved) changed data of the record.
For the post-trigger this returns nothing because the data has already been saved.

Rob

rgansevles:
Erik,

Both the pre- and post-update triggers receive the record being updated.
From the record you can get the old data via record.getChangedData() which returns the outstanding (not saved) changed data of the record.
For the post-trigger this returns nothing because the data has already been saved.

Rob

Ok, thanks!