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 359 discussion

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

A developer writes a Lightning web component that displays a dropdown list of all custom objects in the org from which a user will select. An Apex method prepares and returns data to the component.

What should the developer do to determine which objects to include in the response?

  • A. Check the getObiectType() value for ‘Custom’ or ‘Standard’ on the sObject describe result.
  • B. Import the list of all custom objects from @salesforce/schema.
  • C. Use the getCustomObjects() method from the Schema class.
  • D. Check the isCustom() value on the sObject describe result.
Show Suggested Answer Hide Answer
Suggested Answer: C 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
FriedConsole2000
8 months, 4 weeks ago
Selected Answer: D
It is "D"
upvoted 2 times
...
Sapphire808
1 year, 2 months ago
D Both getGlobalDescribe() and the .isCustom() are valid methods found in Salesforce's documentation. getCustomObject() is not. https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_schema.htm
upvoted 3 times
...
Ullr
1 year, 8 months ago
D Schema.getGlobalDescribe() then check using getDescribe().isCustom()
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 ...