ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 45 - Certified Platform Developer II discussion

Report
Export

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.
Answers
A.
use the Database.Delete method if the Contact insertion fails.
B.
Disable validation rules on Contacts and set default values with a Trigger.
Answers
B.
Disable validation rules on Contacts and set default values with a Trigger.
C.
use the Database.Insert method with allOrNone set to False.
Answers
C.
use the Database.Insert method with allOrNone set to False.
D.
use setSavePoint() and rollback() with a try/catch block.
Answers
D.
use setSavePoint() and rollback() with a try/catch block.
Suggested answer: D
asked 23/09/2024
Rodwell Shibambu
51 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first