+ Start a Discussion

How to Export the data to the txt file and csv file in salesforce

Hi..by using the Restapi, got the data form the External system and deserilaized the data and stored in the string.now i have
two command buttons  Export as textfile, and Export as Csv file. 
 1)when i click on the txt button need to save as txt.file.
2)when click on the Csv button need to save as Csv.file
Any suggestions to save the data on two command buttons in salesforce..How can i procced.
Thanks in advance 
AbhishekAbhishek (Salesforce Developers) 
Hi DeepikaReddy,

Please go through the below articles which have complete information about your query.





Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.

Salesforce Support.
Michael TomarMichael Tomar
Hi there! Take a look at Skyvia - it allows us to export Salesforce data to CSV file: https://skyvia.com/data-integration/salesforce-csv-file-import-and-export
It is much easier method to solve this task