on 11-12-2014 6:36 PM
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?
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.