You need to sign in to do that
Don't have an account?

Need help in writing data to csv file
i have a list of data in String form,
Record Id, Name, Stage Name
"0067F000005RIcsQAG","Robert","Closed Won"
"0067F000005RIctQAG","James","Prospecting"
"0067F000005RIcuQAG","David","Qualification"
"0067F000005RMDIQA4","Kylie","Closed Won"
"0067F000005RMDJQA4","Ernie","Closed Won"
Now, I want help in writing this data into a CSV file using apex and generate that csv file automatically
Any help would be greatly appreciated
Record Id, Name, Stage Name
"0067F000005RIcsQAG","Robert","Closed Won"
"0067F000005RIctQAG","James","Prospecting"
"0067F000005RIcuQAG","David","Qualification"
"0067F000005RMDIQA4","Kylie","Closed Won"
"0067F000005RMDJQA4","Ernie","Closed Won"
Now, I want help in writing this data into a CSV file using apex and generate that csv file automatically
Any help would be greatly appreciated
You can create a CSV file and get through email using this code.
Thanks,
Navin Soni
but i don't want to generate csv from email,
i want to generate the csv file onclick of a link in my vf page
maybe it will use contentDocument or contentDocumentLink concept.
any further assistance or help?