Salesforce
PDII · Question #34
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?
The correct answer is A. Use the Schema namespace. See the full explanation below for the reasoning.
Question
What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?
Options
- AUse the Schema namespace.
- BUse a static resource.
- CPerform a callout to the Metadata API.
- DPerform a SOQL Query.
How the community answered
(20 responses)- A75% (15)
- B5% (1)
- C5% (1)
- D15% (3)
Community Discussion
No community discussion yet for this question.