How can the developer make sure that validation rule violations are displayed?

A developer has a VF page and custom controller to save Account records. The developer wants to display any validation rule violation to the user.

How can the developer make sure that validation rule violations are displayed?
A . Add custom controller attributes to display the message.
B . Include <apex:messages> on the Visualforce page.
C . Use a try/catch with a custom exception class.
D . Perform the DML using the Database.upsert() method

Answer: B

Explanation:

https://developer.salesforce.com/docs/atlas.en-us.pages.meta/pages/pages_compref_message.htm

Latest PDI Dumps Valid Version with 191 Q&As

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

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments