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

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 ?
Best Answer chosen by Admin (Salesforce Developers) 

All Answers

This was selected as the best answer
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.

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.