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
Rohit SharmaGRohit SharmaG 

Trigger/Validation on Case Contact Role

Hi ALL,

I want to prevent the deletion of the case contact role from the case. So that i want to write a validation/Trigger. 

Please let me kwow Is there any ways to do this.

Thanks in Advance !!!!!!!

Rohit Sharma
Ravikant Saini 1Ravikant Saini 1
Hi Rohit,
               You Can do it by before Delete trigger and you can show error on page by
sobject.addError() method.
Rohit SharmaGRohit SharmaG
Salesforce doesn't allow to write trigger on CaseContactRole. This is my issue.