+ 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.