Logging changes to a catalog entry property

Vote:
 

Hi,

I am creating a logging tool to log changes to catalog entries in commerce 1R2 SP2.  I have created a class that implements ICatalogEventListener and have put code inside EntryUpdating to log to a db table.

The problem I am having is getting the old values for the catalog entry, looking at the CatalogEntryDto I am just seeing the new values.

Anyone have any ideas on how I can get the old values for the properties?  Or have experience in this, that could give a better way of retrieving changes to property values?

Thank you,

Bal

#135872
Sep 16, 2015 14:38
Vote:
 

Hi,

You can get the "old" value of a DataRow with row["<columnname>",DataRowVersion.Original]

Regards,

/Q

#135879
Sep 16, 2015 15:38
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.