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
Balajee SelvarajBalajee Selvaraj 

Export salesforce object into excel sheet

1) I have Product__c custom object.
2) I have Custom fields in this custom obj like Id__c,Name__c,Price__c.
3) If I click a button in Vf page a excel should be downloaded with Product__c custom object (record fields)

Thanks & regards
Balajee.S
Ashish DevAshish Dev
You need to make a visualforce and render that as excel. For more details refer https://help.salesforce.com/articleView?id=000003176&type=1