Salesforce
PDII · Question #356
PDII Question #356: Real Exam Question with Answer & Explanation
The correct answer is B. Use custom metadata to hold the high value amount. C. Create a helper class that fetches the high value opportunities.. See the full explanation below for the reasoning.
Question
A developer created an Opportunity trigger that updates the account rating when an associated opportunity is considered high value. Current criteria for an opportunity to be considered high value is an amount greater than or equal to $1,000,000. However, this criteria value can change over time. There is a new requirement to also display high value opportunities in a Lightning web component. Which two actions should the developer take to meet these business requirements, and also prevent the business logic that obtains the high value opportunities from being repeated in more than one place? (Choose two.)
Options
- ACall the trigger from the Lightning web component.
- BUse custom metadata to hold the high value amount.
- CCreate a helper class that fetches the high value opportunities.
- DLeave the business logic code inside the trigger for efficiency.
Community Discussion
No community discussion yet for this question.