# Download CSV button (data from external DB)

**URL:** <https://forum.bubble.io/t/download-csv-button-data-from-external-db/192310>\
**Category:** Database\
**Created:** [February 18, 2022, 9:57am UTC](https://forum.bubble.io/t/download-csv-button-data-from-external-db/192310 "2022-02-18T09:57:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeph.tamuno](https://avatars.discourse-cdn.com/v4/letter/j/34f0e0/32.png) [@jeph.tamuno](https://forum.bubble.io/u/jeph.tamuno)\
**Post date:** [February 18, 2022, 9:57am UTC](https://forum.bubble.io/t/download-csv-button-data-from-external-db/192310/1 "2022-02-18T09:57:48Z")

</div>

I currently have a bubble app which uses API calls to display data from a external DB (postgres). How do I go about creating a button that will download CSV of some data from that external DB on the end user’s system (or maybe send the CSV as an email if it’s easier). Since I use the API connector to retrieve that data from my external DB, I imagine that I’ll need a JSON to CSV converter to achieve this? Just my thoughts…

Please if you have any idea of how this could work, I would really appreciate some feedback.
