cancel
Showing results for 
Search instead for 
Did you mean: 

Fetch list of changes made to an item

Former Member
0 Kudos

Whenever i make any change to an attribute, i can see in HMC that it is being tracked and i can see all the changes i have made to that item instance. e.g as below

I want to fetch this change list in my code. I know these changes are a list of SavedValuesModel and SavedValuesModel in turn contains list of SavedValueEntryModel .

I just want to know if there is any OOTB service to fetch the list of SavedValuesModel for a item model instance.

However i found a OOTB service ItemModificationHistoryService which can get me list of SavedValuesModel but this service is a part of Backoffice extension. My question is that if we have any such service in platform also?

former_member627008
Participant
0 Kudos

Did you found a solution for this?

Accepted Solutions (0)

Answers (1)

Answers (1)

geffchang
Active Contributor
0 Kudos

Just be aware that this is not a reliable way for checking changes to an item. If you look at the JavaDoc of SavedValues (which is under the HMC package), it says:

SavedValues describes the changed attributes of an item after this item was saved by calling a HMCSaveAction (see: GenericItemSaveAction). Its qualified by the modified item, its type, the modifed timestamp, the changed attributes and its values, the count of changed attributes and the user which has initiated the saving process.

This record is created if you change the record manually in HMC. Changes made by impex import (and I think also the old cockpit-based Product Cockpit) do not create SavedValues entries.

Also, this is probably the reason why the service is in backoffice. I'm not sure if there is a similar service for HMC or platform.