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 / 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 |
Is it possible to convert master-detail relationship to look up relationship?
What are differences between workflows and approval process?
Define sandbox.org. Name different sandbox types.
Can we create master detail relationship on existing records? : salesforce admin
Explain what is the trigger?
What is a data type in salesforce?
Is it possible to schedule a dynamic dashboard?
What is protocal? : salesforce integration
Explain Trigger events? & context variables?
What is json? : salesforce integration
Which parts of lightning components are server-side and which are client-side ? : salesforce lightning component
What are trend reports?