ExamGecko
Question list
Search
Search

Question 9 - Certified B2B Commerce Developer discussion

Report
Export

Which wire adapter should a developer use to retrieve metadata about a specific picklist?

A.
getPicklistMetadataValues
Answers
A.
getPicklistMetadataValues
B.
getPicklistMetadata
Answers
B.
getPicklistMetadata
C.
getPicklistValues
Answers
C.
getPicklistValues
D.
getPicklist
Answers
D.
getPicklist
Suggested answer: C

Explanation:

To retrieve metadata about a specific picklist, a developer should use the getPicklistValues wire adapter. The getPicklistValues wire adapter imports data from the @salesforce/ui-api module and returns an object that contains information such as the picklist's label, value, default value, validity, and controlling field values. The getPicklistMetadataValues wire adapter does not exist. The getPicklistMetadata wire adapter does not exist either. The getPicklist wire adapter does not exist either. Salesforce

Reference: [Lightning Web Components Developer Guide: getPicklistValues], [Lightning Web Components Developer Guide: Import User Interface API]

asked 23/09/2024
Alexander Ang
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first