You need to sign in to do that
Don't have an account?
Vidya H 4
for example - if Account has 3 related contacts such as contact a, contact b and Primary contact.
The contact with name primary contact should not be deleted by any user. Remaning contacts can be deleted.
Trigger which will not allow any users to delete Contact that named as Primary contact.
for example - if Account has 3 related contacts such as contact a, contact b and Primary contact.
The contact with name primary contact should not be deleted by any user. Remaning contacts can be deleted.
You can use the below trigger and handler.
Trigger:
Handler:
If this solution helps, Please mark it as best answer.
Thanks,