You need to sign in to do that
Don't have an account?
Egidio Caprino 9
Validation rule on delete
Hello,
The right answer to this question
I do not see how to achieve the desired result using these two features. Do you know it?
The right answer to this question
Universal Containers has built a recruiting application with 2 custom objects, Job Applications and Reviews that have a master-detail relationship. Users should NOT be allowed to delete review records after job application records have been approved. How would a developer meet this requirement?seems to be this one
Use a validation rule in conjunction with a roll-up summary fieldSo we have a Job Application as Master object and Review as Detail one. The roll-up summary field is in the Master one for definition. A validation rule is executed only on INSERT and UPDATE operation, not on DELETE.
I do not see how to achieve the desired result using these two features. Do you know it?
You are right validation rule is excuted only on Insert and Update operation not on DELETE operation but as per the above execution flow, its delete operation in detail object but its UPDATE operation in the master object.
Try adding one validation rule in the Master object as mention above and try deleting the detail record.
Thanks,
http://www.karanrajs.com
All Answers
You can achieve this by writing trigger on Review object.
Thanks,
Neetu
You are right validation rule is excuted only on Insert and Update operation not on DELETE operation but as per the above execution flow, its delete operation in detail object but its UPDATE operation in the master object.
Try adding one validation rule in the Master object as mention above and try deleting the detail record.
Thanks,
http://www.karanrajs.com