DEV Community

Cover image for Throw Error when user tries to delete the contact without account
Shubham Vaishnav
Shubham Vaishnav

Posted on

Throw Error when user tries to delete the contact without account

Problem:

You need to create an apex trigger on the contact object which is throwing an error whenever user tries to delete the contact without an account

Trigger code :

Continue reading . . .
https://salesforceforfresher.wordpress.com/2021/07/08/throw-error-when-user-tries-to-delete-the-contact-without-account/

Top comments (0)