Which action can the developer perform to get the record types and - ProProfs Discuss
Topics
Products
Follow Us:

Which action can the developer perform to get the record types and picklist values in the controller? A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page.



A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().
B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query case records in the org to get all values for the Status picklist field.

This question is part of Salesforce Platform Developer 1
Asked by Wyatt Williams, Last updated: Jan 11, 2020

+ Answer
Request

1 Answer

Wyatt Williams

Wyatt Williams

Answered Mar 18, 2018

Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues().
Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().

####
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.