What can be used wh...
 
Notifications
Clear all

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

1 Posts
1 Users
0 Likes
161 Views
(@monvillemauro)
Noble Member
Joined: 2 years ago
Posts: 721
Topic starter  

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 . Disable validation rules on Contacts and set default values with a Trigger.
  • C . use the Database.Insert method with allOrNone set to False.
  • D . use setSavePoint() and rollback() with a try/catch block.

Show Answer Hide Answer

Suggested Answer: D

   
Quote

Latest Salesforce PDII Dumps Valid Version

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