ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 76 - Certified Data Architect discussion

Report
Export

Universal Containers (UC) has several custom Visualforce applications have been developed in which users are able to edit Opportunity records. UC struggles with data completeness on their Opportunity records and has decided to make certain fields required that have not been in the past. The newly required fields are dependent on the Stage of the Opportunity, such that certain fields are only required once an Opportunity advances to later stages. There are two fields. What is the simplest approach to handle this new requirement?

A.
Update the Opportunity page layout to mark these fields as required.
Answers
A.
Update the Opportunity page layout to mark these fields as required.
B.
Use a validation rule for each field that takes the Stage into consideration.
Answers
B.
Use a validation rule for each field that takes the Stage into consideration.
C.
Update these Opportunity field definitions in Setup to be required.
Answers
C.
Update these Opportunity field definitions in Setup to be required.
D.
Write an Apex trigger that checks each field when records are saved.
Answers
D.
Write an Apex trigger that checks each field when records are saved.
Suggested answer: B

Explanation:

Using a validation rule for each field that takes the Stage into consideration is the simplest approach to handle this new requirement. A validation rule can enforce the field requirements based on the logic and criteria that you define, and display an error message when users try to save a record that does not meet the requirements. Updating the Opportunity page layout to mark these fields as required will not work because page layouts do not support conditional field requirements. Updating these Opportunity field definitions in Setup to be required will not work because it will apply to all stages and records.Writing an Apex trigger that checks each field when records are saved is not the simplest approach because it requires coding and testing

asked 23/09/2024
Karsten Seifert
34 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first