Salesforce
PDII · Question #340
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…
The correct answer is D. Check the isCustom() value on the sObject describe result. See the full explanation below for the reasoning.
Question
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?
Options
- ACheck the getObiectType() value for 'Custom' or 'Standard' on the sObject describe result.
- BImport the list of all custom objects from @salesforce/schema.
- CUse the getCustomObjects() method from the Schema class.
- DCheck the isCustom() value on the sObject describe result.
How the community answered
(28 responses)- A4% (1)
- B18% (5)
- C7% (2)
- D71% (20)
Community Discussion
No community discussion yet for this question.