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.
Suggest answer: C
Reference:
No comments:
Please share to make the community better.