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

Exam Certified Platform Developer II All Questions

View all questions & answers for the Certified Platform Developer II exam

Exam Certified Platform Developer II topic 1 question 53 discussion

Actual exam question from Salesforce's Certified Platform Developer II
Question #: 53
Topic #: 1
[All Certified Platform Developer II Questions]

What is the optimal technique a developer should use to programmatically retrieve Global Picklist options in a Test Method?

  • A. Use the Schema namespace.
  • B. Use a static resource.
  • C. Perform a callout to the Metadata API.
  • D. Perform a SOQL Query.
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
M4JK3LSON
11 months ago
Example of usage : Schema.Account.Industry.getDescribe().getPicklistValues();
upvoted 1 times
...
lorenac2
1 year, 11 months ago
Selected Answer: A
This needs to be by utilizing an existing picklist field that uses the global picklist. https://salesforce.stackexchange.com/questions/147004/retrieve-globalpicklist-globalvalueset-without-soql
upvoted 2 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 ...