How to download the contents of a data collection as a csv file from Front-end

I need to let members to download their filtered data from the content manager / database, as a CSV file.
Currently using velo code its possible to query the data and get it as a JSON object.
But I’m having the issue with convert JSON data object to CSV downloadable file.

I tried with this >
https://www.wix.com/velo/forum/tips-tutorials-examples/how-to-download-the-contents-of-a-data-collection-in-a-csv-file
and this >

But still no luck. :disappointed_relieved:
Any help appreciated.
Thanks.

That works, but there is no “template” for us to copy… It would be good to add it to the velo example. @talyaro Any chance?

Thanks @certified-code , Issue was that I tested this on a free site.
I checked this on a premium site & worked great.
Thanks anyway. :blush: