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

**URL:** <https://forum.wixstudio.com/t/how-to-download-the-contents-of-a-data-collection-as-a-csv-file-from-front-end/42466>\
**Category:** Ask the community\
**Tags:** wix-members-area, code, question, cms\
**Created:** [May 18, 2022, 8:34pm UTC](https://forum.wixstudio.com/t/how-to-download-the-contents-of-a-data-collection-as-a-csv-file-from-front-end/42466 "2022-05-18T20:34:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahanchatu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sahanchatu/32/16628_2.png) [@sahanchatu](https://forum.wixstudio.com/u/sahanchatu)\
**Post date:** [May 18, 2022, 8:34pm UTC](https://forum.wixstudio.com/t/how-to-download-the-contents-of-a-data-collection-as-a-csv-file-from-front-end/42466/1 "2022-05-18T20:34:35Z")

</div>

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](https://www.wix.com/velo/forum/tips-tutorials-examples/how-to-download-the-contents-of-a-data-collection-in-a-csv-file)  
and this \>

> <https://github.com/andreaskviby/wixhtmlpages/blob/master/docs/wix-datacollection-excel-export.html>

But still no luck. 😥  
Any help appreciated.  
Thanks.

---

<div class="post-metadata">

**Author:** ![Certified\_Code](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/certified_code/32/80179_2.png) [@Certified\_Code](https://forum.wixstudio.com/u/Certified_Code)\
**Post date:** [May 20, 2022, 5:50am UTC](https://forum.wixstudio.com/t/how-to-download-the-contents-of-a-data-collection-as-a-csv-file-from-front-end/42466/2 "2022-05-20T05:50:12Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![sahanchatu](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/sahanchatu/32/16628_2.png) [@sahanchatu](https://forum.wixstudio.com/u/sahanchatu)\
**Post date:** [May 20, 2022, 6:45pm UTC](https://forum.wixstudio.com/t/how-to-download-the-contents-of-a-data-collection-as-a-csv-file-from-front-end/42466/3 "2022-05-20T18:45:46Z")

</div>

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