Which two actions should the developer perform to get the available - ProProfs
     

Which two actions should the developer perform to get the available picklist values and record types in the controller if a developer wants to display all of the picklist entries for the opportunity stagename field and all of the available record types for the opportunity object on a visualforce page?



A. Use schema.recordtypeinfo returned by recordtype.sobjecttype.getdescribe().getrecordtypeinfos()
B. Use schema.picklistentry returned by opportunity.stagename.getdescribe().getpicklistvalue()
C. Use schema.picklistentry returned by opportunity.sobjecttype.getdescribe().getpicklistvalue()
D. Use schema.recordtypeinfo returned by opportunity.sobjecttype.getdescribe().getrecordtypeinfos()

This question is part of Developer I

+ AnswerRequest Answer
...

2 Answers

raghusfdc

Raghusfdc

Answered on Aug 18, 2019

B & D Answer is for this question

maryolina

Maryolina

Answered on Jun 26, 2019

Use schema.picklistentry returned by opportunity.sobjecttype.getdescribe().getpicklistvalue()
Use schema.recordtypeinfo returned by opportunity.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.