# Generate a CSV File using Custom Widget

**URL:** <https://community.tulip.co/t/generate-a-csv-file-using-custom-widget/11914>\
**Category:** Developer\
**Tags:** csv\_file, custom-widgets\
**Created:** [July 3, 2024, 1:57pm UTC](https://community.tulip.co/t/generate-a-csv-file-using-custom-widget/11914 "2024-07-03T13:57:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anthony.angeles](https://avatars.discourse-cdn.com/v4/letter/a/e274bd/32.png) [@anthony.angeles](https://community.tulip.co/u/anthony.angeles)\
**Post date:** [July 3, 2024, 1:57pm UTC](https://community.tulip.co/t/generate-a-csv-file-using-custom-widget/11914/1 "2024-07-03T13:57:22Z")

</div>

Hi,

I’m trying to make a custom widget that would generate a CSV File. It seems I’m reaching a dead end on getting the widget to work. Is there a proper process to do this?

I’m planning to store the generated CSV files into table records.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/7/7bf1bca47b8f0280e8ffb5178cf4080f1f342dfe.png)

---

<div class="post-metadata">

**Author:** ![Beth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.tulip.co/beth/32/5987_2.png) [@Beth](https://community.tulip.co/u/Beth)\
**Post date:** [July 8, 2024, 8:02pm UTC](https://community.tulip.co/t/generate-a-csv-file-using-custom-widget/11914/2 "2024-07-08T20:02:55Z")

</div>

Hi Anthony!

Welcome to Tulip Community 🎉

Where have you gotten stuck / do you have any errors you can share to help the Tulip Community further debug this?

---

<div class="post-metadata">

**Author:** ![sasa](https://avatars.discourse-cdn.com/v4/letter/s/50afbb/32.png) [@sasa](https://community.tulip.co/u/sasa)\
**Post date:** [January 31, 2025, 8:16am UTC](https://community.tulip.co/t/generate-a-csv-file-using-custom-widget/11914/3 "2025-01-31T08:16:39Z")

</div>

Hello,  
I have tried it but I have also got stuck. Error message is “base value did not pass the validation”. I would like to know if there are some acceptable formats for file type variables except url. Image file can accept some other formats like “data:image/png;base64,xxxx”. Thank you.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/agilemfg/original/2X/2/288764f49ba9ebcbb9fd770e45dbe74f1cb1596e.png)

---

<div class="post-metadata">

**Author:** ![tokotu](https://avatars.discourse-cdn.com/v4/letter/t/5fc32e/32.png) [@tokotu](https://community.tulip.co/u/tokotu)\
**Post date:** [January 31, 2025, 1:17pm UTC](https://community.tulip.co/t/generate-a-csv-file-using-custom-widget/11914/4 "2025-01-31T13:17:07Z")

</div>

Hi @sasa

tldr.

1. Is storing Data in Base64 no option for you?
2. Is there a requirment to firstly show the data and then download these in csv file?
