Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam CRT-450 All Questions

View all questions & answers for the CRT-450 exam

Exam CRT-450 topic 1 question 102 discussion

Actual exam question from Salesforce's CRT-450
Question #: 102
Topic #: 1
[All CRT-450 Questions]

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.
Which two actions should the developer perform to get the available picklist values and record types in the controller? (Choose two.)

  • A. Use Schema.RecordTypeInfo returned by Opportunity.SObjectType.getDescribe().getRecordTypeInfos().
  • B. Use Schema.PicklistEntry returned by Opportunity.SObjectType.getDescribe().getPicklistValues ().
  • C. Use Schema.RecordTypeInfo returned by RecordType.SObjectType.getDescribe().getRecordTypeInfos().
  • D. Use Schema.PicklistEntry returned by Opportunity.StageName.getDescribe().getPicklistValues ().
Show Suggested Answer Hide Answer
Suggested Answer: AD 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
Balrick
Highly Voted 3 years, 3 months ago
Correct answer is A and D. https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Schema_PicklistEntry.htm#apex_Schema_PicklistEntry_methods
upvoted 13 times
...
cagdasaydin7
Most Recent 1 year ago
Selected Answer: AD
True answer is A&D
upvoted 1 times
...
tanyen
1 year, 1 month ago
AD is correct. You can run Developer Console -> Open Execute Anonymous Windows: System.debug(Opportunity.SObjectType.getDescribe().getRecordTypeInfos()); System.debug(Opportunity.StageName.getDescribe().getPicklistValues ());
upvoted 1 times
...
Nand072
1 year, 2 months ago
How on earth could B be right?????
upvoted 1 times
...
Nand072
1 year, 3 months ago
Selected Answer: AD
B is wrong, that doesn't return the list of the values of the picklist, nor the record type. IT cannot be true.
upvoted 1 times
...
govosen887
1 year, 7 months ago
Selected Answer: AD
You need picklist values for the specific field
upvoted 2 times
...
Dean5555
2 years, 1 month ago
Selected Answer: AD
A&D ftw
upvoted 1 times
...
ApexMike
2 years, 1 month ago
Selected Answer: AD
A and D baby
upvoted 2 times
...
Simon28
3 years, 2 months ago
It's A&D
upvoted 4 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...