function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to export bulk records to excel from visual force page


I have requirement to display and export around 30,000 records in around 30 columns  (from 3 objects having relationship).I am able to display records in the visual force page using pagination(10 per page). But i am not able to export the records.I am able to export the records using list<list> concept but it is taking time around 4-5 min to download the excel file (perfomance slow).I tried with future method and batch,but no luck.please give me any better solution to overcome this obstacle.Thanks in advance

Leslie  KismartoniLeslie Kismartoni
Youre requirements sound specific, but here are two ideas off the top of my head:
  1. For smaller sets, I like Enabler (I use the version with Google Sheets) (
  2. For really large sets, you can backup/export all SFDC data, then use the CSV data it generates. (
I would checkout Enabler for Excel (  It's an incredibly smooth and easy-to-use plugin for Excel -- as long as you're on Windows.  I don't think there's a version available for Macs.
Leslie  KismartoniLeslie Kismartoni
(Hence why I use Google Sheet - Enabler works well for the Mac on there...)