July 2018
Beginner to intermediate
458 pages
9h 58m
English
The force:recordData component allows us to load the record from the Salesforce object, using recordId. recordId on the standard record page can be obtained by implementing the force:hasRecordId interface, shown as follows:
<aura:component implements="force:hasRecordId"><!-- The following is an attribute that automatically holds the Id if the component implements the force:hasRecordId --><aura:attribute name="recordId" type="String" /> <!--... --> </aura:component>
The syntax for loading the data for the record using force:recordData is as follows:
<aura:component implements="flexipage:availableForRecordHome,force:hasRecordId"> <aura:attribute name="record" type="Object"/> <aura:attribute ...