Exam Plat-Dev-301 Topic 1 Question 71 Discussion
Actual exam question for Salesforce's Plat-Dev-301 exam
Question #: 71
Topic #: 1
Question #: 71
Topic #: 1
A developer is building a Lightning web component that retrieves data from Salesforce and assigns it to the record property.

What must be done in the component to get the data from Salesforce? A)

B) C)


What must be done in the component to get the data from Salesforce? A)

B) C)

Suggested Answer: A Vote an answer
Option A is the correct answer. The @wire decorator is used in conjunction with getRecord from lightning/uiRecordApi to retrieve a record from Salesforce. The syntax @wire(getRecord, { recordId: '$recordId', fields: '$fields' }) sets up a reactive property, which means it will automatically rerun whenever the recordId or fields property changes.
Get Record Data
Get Record Data
by Mortimer at Jul 01, 2026, 01:11 AM
Contact Us
If you have any question please leave me your email address, we will reply and send email to you in 12 hours.
Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday
Support: Contact now
Comments
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.
Report Comment
Commenting
You can sign-up / login (it's free).