How to log activity on a customised field?

Document ID : KB000024363
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

At times you may want to log activity when someone updates the information on a customized field.

Solution:

Example is to be found in: sd/samples/call_mgt/cr_site.mod
Modify the file cr_site.mod like this:

  1. Create custom field in the cr object (ZYourfield)

  2. Follow the instructions in the cr_site.mod file to enable activity log entries when this field changes

    ie. Change file as follows:
    OBJECT cr {    TRIGGERS {       // log field changes       POST_CI  val_fieldupdate_site(persistent_id, audit_userid, CHANGED_ONLY, ZYourfield ) 40FILTER( EVENT("UPDATE") );// Add this trigger to include fields that are customized// to apply service types to the request.  // This customization is supported only by CA Services.POST_VALIDATE site_sla_processing() 100 FILTER( "$NX_CLASSIC_SLA_PROCESSING" != "Yes" );   };};

  3. Create an activity association for the new field.

  4. Finaly copy the modified file cr_site.mod to site/mods/majic folder and restart the server.