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
VinuVinu 

How to save the downloaded Csv file to the document object in salesforce????

I need to send a mail with the Dynamically generated Csv file as a attachment to the user who use it...

 

I have create a visualforce page which is having a list of values in the grid with the download option and the Link is called "Download Csv" and its working great,

Now what i need is, Instead of saving the downloaded Csv in local machine, I need to save that Csv file in the Document object in salesforce itself, So that i can get a Id for the Csv file,

With that ID i beleive to fetch the saved Csv file to send a mail with the Attachment....

 

How to save the downloaded file to the document object in salesforce????

 

Or else any of your new ideas about this post is mostly welcomed..

Thank you