# CSV Generation with conditions on what gets exported

**URL:** <https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439>\
**Category:** Ask for Help\
**Created:** [December 7, 2024, 3:26pm UTC](https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439 "2024-12-07T15:26:59Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gary\_Biagioni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_biagioni/32/4201_2.png) [@Gary\_Biagioni](https://community.glideapps.com/u/Gary_Biagioni)\
**Post date:** [December 7, 2024, 3:26pm UTC](https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439/1 "2024-12-07T15:26:59Z")

</div>

Some background  
I have a table that contains events that people can register to attend, call this the Events table. I have another table where I put all the registrations, call this the Registrations table. In the Events table on each event (row) I have a relation column that references all the registrations associated with that particular event.

Csv file generation only allows me to dump a whole table.

What I want to do  
I want to generate a csv file of an all the registrations of a particular event. So I either want

- to dump a csv of everything in the relation column in the Events table
- be able to put a condition on the csv file generation that only causes some of the rows in the Registrations table to be written

Or  
Is there something else I can do?

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [December 7, 2024, 3:41pm UTC](https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439/2 "2024-12-07T15:41:54Z")

</div>

You can use the relation as the source of your CSV Export.

From the [docs](https://www.glideapps.com/docs/automation/actions/generate-csv):

 ![CleanShot 2024-12-07 at 23.43.04@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/d/cdf6c35cbaf5387fb76b02d0b92af2e209cd2375.png)

---

<div class="post-metadata">

**Author:** ![Gary\_Biagioni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_biagioni/32/4201_2.png) [@Gary\_Biagioni](https://community.glideapps.com/u/Gary_Biagioni)\
**Post date:** [December 7, 2024, 4:37pm UTC](https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439/3 "2024-12-07T16:37:01Z")

</div>

I thought I tried that but will give it a third look. Thanks

---

<div class="post-metadata">

**Author:** ![Gary\_Biagioni](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/gary_biagioni/32/4201_2.png) [@Gary\_Biagioni](https://community.glideapps.com/u/Gary_Biagioni)\
**Post date:** [December 7, 2024, 6:49pm UTC](https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439/4 "2024-12-07T18:49:58Z")

</div>

Well Darren I apologize for wasting your time. I think what happened is I needed to scroll the source list more to see the relation. I have it working now, appreciate the help as always.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [December 14, 2024, 6:50pm UTC](https://community.glideapps.com/t/csv-generation-with-conditions-on-what-gets-exported/78439/5 "2024-12-14T18:50:32Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
