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
siddarth rajsiddarth raj 

Generate csv on demand from Apex


I have a requirement to generate the csv file and to be downloaded on button click from user. No saving we wanted it just generated and download on the flow.

Could some please help if any one come across of it.

Best Answer chosen by siddarth raj

All Answers

Amit Chaudhary 8Amit Chaudhary 8
This was selected as the best answer
siddarth rajsiddarth raj
Thanks Amit

It worked I have seen it some days ago and implimented similarly , the flaw with this is we have to render to format in which we wanted like pdf or csv or excel. 

It cant be downloaded from the same page. By the way Thanks for your response.