Salesforce Platform Developer I (legacy) — Question 51
How can a developer get all of the available record types for the current user on the Case object?
Answer options
- A. Use DescribeSObjectResult of the Case object.
- B. Use SOQL to get all Cases.
- C. Use DescribeFieldResult of the Case.RecordType field.
- D. Use Case.getRecordTypes().
Correct answer: A
Explanation
The correct answer is A because DescribeSObjectResult provides metadata about the Case object, including available record types for the current user. Options B and D do not specifically address retrieving record types, while option C only pertains to a specific field rather than all record types.