+ Start a Discussion
Vijay Ramesh 5Vijay Ramesh 5 

Export Data As CSV From Custom Lightning Component

Hi All, 

Our Requirement:

We have built a custom report in Lightning using lightning component as per the customer requirement.
Customer would like to have a downloadable as CSV for this custom report so that users can just download it and it will be downloaded with all the records with out any limits.

Currently we are sending out an email of custom report which is having heap size limit.
Quick help would be much appreciated.

Thanks
GauravGargGauravGarg

Hi Adam,

Please go through below link. Hope this will solve you problem.

https://developer.salesforce.com/forums/?id=906F00000008n0zIAA

Thanks,

Gaurav
Skype: gaurav62990

Vijay Ramesh 5Vijay Ramesh 5
Hi @Gaurav, 

I checked the above given url, this is a report using visualforce page or standard report in classic.  

I am talking about lightning component data instead of visualforce page.  Basically we do aura iteration to populate the table of data.  We want to export these data as CSV from the lightning component datas.

 
GauravGargGauravGarg

Hi Vijay,

I will check and get back to you on this. 

Thanks,

Gaurav

JustAGirlyGeekJustAGirlyGeek
Were you able to figure this out?
farukh sk hdfarukh sk hd
How to Download data in csv format using Lightning component.

On my blog i have displayed some data to user, User will select the data that user wants to download from the displayed data. Once user select all those record which user wants to export user has to click on download data button and excel in the csv format will get download.

Also i have shown how to show data from related object in csv as well.

Please refer the below link.


https://www.sfdc-lightning.com/2019/10/export-to-csv-in-lightning-component.html