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. Add the following code above record;@wire(getRecord, { recordId: ‘$recordId’, fields: ‘$fields’ }) B. Add the following code above record;@wire(getRecord, { recordId: ‘$recordId’ })Get the fields in renderedCallback() and assign them to record. C. Add the following code above record;@api(getRecord, { recordId: ‘$recordId’ })Get the fields in renderedCallback() and assign them to record. D. Add the following code above record;@api(getRecord, { recordId: ‘$recordId’, fields: ‘$fields’ }) Suggested Answer: A This question is in Certified Platform Developer II Exam For getting Salesforce Certified Platform Developer II Disclaimers: The website is not related to, affiliated with, endorsed or authorized by Salesforce. Trademarks, certification & product names are used for reference only and belong to Salesforce. The website does not contain actual questions and answers from Salesforce's Certification Exams.
Please login or Register to submit your answer