function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
wdadmin2010wdadmin2010 

Tracking Case Comments

Is there a way to get around the limitation that prevents history tracking on case comments? SF tracks when the change occurred but does not track what actually changed.

 

hisrinuhisrinu

If you want to track the old values and new values I think you need to write a trigger on casecomment and store the previous values and new values in a custom object. Something like below..

 

 

There might be a better way of doing it :smileyindifferent:

 

trigger testing on CaseComment (before update) {
    for(casecomment c : trigger.new)
    if(trigger.oldmap.get(c.id).CommentBody == c.CommentBody){
//write your logic here
}
}