You need to sign in to do that
Don't have an account?
AxxxV
Trigger to prevene record deletion without throwing error
I would like to prevent a user from deleting a Contact record based on certain logic based on record attributes.
However, instead of outputting an error message, I would like to update a record ownership, and not show the error to the user.
In short, can I prevent deletion without throwing an error?
However, instead of outputting an error message, I would like to update a record ownership, and not show the error to the user.
In short, can I prevent deletion without throwing an error?
What I would probably do is build an s-control that would be used to override the standard delete button. The s-control can have any criteria that you want in it to determine if it should delete the record or do something else.