cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How can I use SavedValues for audit purpose for custom object?

Former Member
0 Likes
838

How can I use SavedValues for audit purpose for custom object?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Likes

i think this keeps changes done in HAC, i want to know if we modify an object from anywhere, from a storefront or using Impex.then if we want to keep history , how we can utilize SavedValues.

Thanks

arvind-kumar_avinash
Active Contributor
0 Likes

Every SAP Commerce item can contain a collection of SavedValues. Please check the data model at https://help.hybris.com/1808/hcd/8c535eff86691014b7dccb3539092813.html and in the core-items.xml. If you want to retrieve the history of changes, you can check https://answers.sap.com/questions/12752151/savedvalues-in-hybris.html . Please note that this feature tracks the persistence action performed on the items using backoffice and not from strorefront (e.g. password changes, addition/modification of addresses etc. by a user).

Another feature available from v6.6 is Generic Audit framework ( https://help.hybris.com/1811/hcd/3e2b8491449d43b391eb1ce9c73cbb7f.html ).

If these things do not fit your requirements, you will have to implement your own audit trail framework. You will need to create itemtype(s) with deploymenttable(s) and write interceptors. You can check the section, 'Example - Creating a RemoveInterceptor that Stores Deleted Users in a Separate Table.' at https://help.hybris.com/6.4.0/hcd/8bfbf43e8669101480d0f060d79b1baa.html for an example.