You need to sign in to do that
Don't have an account?
shekhar 46
why cant we use validation rule on deleting record
why cant we write validation rule on deleting record
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
Here is the simple example.
If the FirstName of contact is "Primary" and Lastname is "Contact" then user should get an error while deletion of the contact.
Trigger:
Handler:
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
All Answers
Validation rule will only fire while creation on updation of a record. That is how it id designed by salesforce. If you need to write some validation on deletion you may have to use trigger.
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,
can u sharre some example of validaion on deletion using trigger
Here is the simple example.
If the FirstName of contact is "Primary" and Lastname is "Contact" then user should get an error while deletion of the contact.
Trigger:
Handler:
Let me know if you face any issues.
If this solution helps, Please mark it as best answer.
Thanks,