Skip to Content
author's profile photo Former Member
Former Member

Fetch list of changes made to an item

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 belowalt text

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?

1573-untitled.png (20.0 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Oct 24, 2018 at 05:41 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.