1. Create an activity association for your new field.
In parenthesis, you'll see an example that I used for a custom field called Call Type.
- On the web client go to the Administration tab, unfold the
Notification menu, and select Activity Associations.
- Press 'Create New' on the Activity Association List.
- Enter the custom field name in the symbol text box (IND001)
- Enter a code in the code text box (IND001)
- Choose the object type from the drop-down box (Request)
- Enter a description of the field (The Call Type field on a Incident)
- Enter the custom attribute name (zCall_Type)
- Enter the
activity type. You can use
"Field Update" or you can create a
new activity type if you need to specify notifications for the
activity type you select.
(Field Update)
- Check the "Log
Me" checkbox.
2. Copy cr_site.mod from $NX_ROOT\caisd\samples\call_mgt to
$NX_ROOT\caisd\site\mods\majic
3. Modify the contents of the file from the default below. Replace the
attr, attr, with your custom
attribute name.
OBJECT cr {
TRIGGERS {
// log field changes
POST_CI val_fieldupdate_site(persistent_id, audit_userid, CHANGED_ONLY, attr, attr,... ) 40
FILTER( EVENT("UPDATE") );
} ;
};
Separate multiple custom attributes with commas.
OBJECT cr {
TRIGGERS {
// log field changes
POST_CI val_fieldupdate_site(persistent_id, audit_userid, CHANGED_ONLY, zCall_Type, zDomain) 40
FILTER( EVENT("UPDATE") );
};
};
4. Restart USP services.
5. You should notice that the activity log now includes changes made to your custom field, but the custom
attribute name (zCall_Type) is listed in the activity log
instead of the label name (Call Type). Please refer to the Article entitled "Matching
attribute names with label names" to resolve this problem.