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
Sushma  RamakrishnanSushma Ramakrishnan 

Help to reduce/remove Trigger standard error message

Trigger Error message
Hi All,

I have written a Trigger on  Event Standard object.
My Trigger error message is : "Upcomming Meetings cannot be deleted". 
Is thr a way by which i can display only this part of the message and have ignored the rest salesforce standard error message.

Thanks In Advance.
Lokeswara ReddyLokeswara Reddy
Hi Susma,
Looks like there is validation rule in place to prevent users from deleting upcoming events and your are trying to show custom error message from trigger, as validation rule fires before trigger invokes you can not controle this. Deactivate your validation rule first and try.
Sushma  RamakrishnanSushma Ramakrishnan
Hi Lokeswara,

Currently we dont have any validation rule on event object.

Thanks,
R.Sushma.