adspace


There is a master-detail relationship between two objects and I want to ensure that the master object should not have more than 10 child records. How

Answer Posted / Virendra Kumar Shukla

To enforce this limitation, create a trigger on the master object that checks the number of related child records before an insert or update operation. If the count exceeds 10, throw an exception and rollback the transaction to prevent the operation from proceeding.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is workflow rule and workflow actions? : salesforce workflows and approval process

574


What were you doing before sfdc development?

522