Exam4Training

What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?

Business rules require a Contact to always be created when a new Account is created.

What can be used when developing a custom screen to ensure an Account is not created if the creation of the Contact fails?
A . Use the Database.Delete method if the Contact insertion fails.
B . Use the Database.Insert method with allOrNone set to False.
C . Disable Validation rules on Contacts and set default values with a Trigger.
D . Use setSavePoint() and rollback() with a try/catch block.

Answer: D

Latest PDII Dumps Valid Version with 280 Q&As

Latest And Valid Q&A | Instant Download | Once Fail, Full Refund

Exit mobile version