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
FadiShamiFadiShami 

Disable new comment on a closed Case

Is there a way to not allow the creation of new comments on a closed case ??
 
I tried a trigger that adds an error, but it is not recognizing Comments as a field on the Case object !
 
What am i missing ?
 
Thanks
Best Answer chosen by Admin (Salesforce Developers) 
werewolfwerewolf
http://blogs.salesforce.com/support/2008/10/how-to-stop-peo.html

All Answers

werewolfwerewolf
http://blogs.salesforce.com/support/2008/10/how-to-stop-peo.html
This was selected as the best answer
werewolfwerewolf
And for the record, Comments is not actually a field on the Case object, it's a subobject, even if it can appear on the Case and Close Case page layouts.
FadiShamiFadiShami

I noticed that is it a seperate object, but what was confusing is that i didn't see how to access it directly from the Case object.

Thanks for you help, it worked.