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
DeepikareddyDeepikareddy 

Export data in salesforce

Hi iam getting the data form the external system, need to Export the data as the Textfile and Excel file onclicking of the Command button.
For Example:
suppose i have two comandbutton, of save as text file, and other save as excelfile, files should be save depending upon respective button.

ANy Solutions and usefull links or related blogs  are very much appreciated. 
thanks
Deepika 
 
Danish HodaDanish Hoda
Hi Deepika,
You can create two Vf pages for different buttons with extensions where you can check in their contructor if the file extension is .xsl or .txt.