Skip to main content

Posts

Showing posts with the label how to download multiple files in lwc component salesforce

How to download selected multiple files for a record using LWC component?

 Here is the LWC component, can be added to record page. Apex Class public   class   MultipleFilesDownLoadController  {      @AuraEnabled ()      public   static    List < ContentDocumentLink > retriveFiles( String  sLinkEntityId) {          system .debug( 'sLinkEntityId--' +sLinkEntityId);                 List < ContentDocumentLink > listOfDocumentLink = [ Select   Id , ContentDocument . LatestPublishedVersionId , ContentDocumentId , ContentDocument . Title , ContentDocument . Owner . Name                                              ...