on ‎2018 Dec 18 2:38 PM
How can I use SavedValues for audit purpose for custom object?
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.