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
KMK91KMK91 

I have a custom button, if click on button i have to export 2 million records in Excel Sheet? How?

ForceBurgerForceBurger
First off, Excel can't handle 2 million rows.  You could try this:  https://help.salesforce.com/apex/HTViewSolution?id=000003176  , but 2 million records might time out.  You could use APEX to a CSV file (help here: https://developer.salesforce.com/forums/?id=906F00000008xtsIAA & here http://salesforce.stackexchange.com/questions/25077/command-button-to-export-to-csv), but again very large size data.  You should use an integration tool to move that much data.