December 2020

Salesforce

How to attach a file to a record using Salesforce Lightning Component?

Add the below Lightning Component to the Lightning Record page. Sample Code: Aura Component: <aura:component implements="flexipage:availableForRecordHome,force:hasRecordId" access="global" >        <lightning:card>        <lightning:fileUpload label = "Attach Receipt(s)"                              name = "fileUploader"                               multiple ....