Skip to main content

Trigger a csv download from a script

  • October 11, 2020
  • 4 replies
  • 103 views

Forum|alt.badge.img

Hello All,

I’m looking to see what my options are to create and download a csv file generated from a base, but with a very specific format.

Right now I have a script that loads records from the base, creates a stringified csv document, and then saves that string into a multiline text cell in a different table.
The issue is that in order to use that text, I have to copy and paste the contents of the cell into a text document, save as a csv, then open in Excel.

Does anyone know of a way I could directly trigger a download of the csv, or even save it as a downloadable attachment in cell instead?

Thanks!

4 replies

Forum|alt.badge.img+19
  • Inspiring
  • October 11, 2020

I think you first should read this to get started … after which, you’ll surely have more questions. :winking_face:


Forum|alt.badge.img
  • Author
  • New Participant
  • October 11, 2020

I think you first should read this to get started … after which, you’ll surely have more questions. :winking_face:


Thanks Bill – I just set everything up to upload into a write-only google drive folder – easy enough solution for now.


Forum|alt.badge.img+7
  • Participating Frequently
  • January 10, 2023

I'm successfully generating a CSV in a script block, and adding the result to a multi-line text field, as well as outputting it as text to the block `output`. But I'd prefer to attach it as a file, or better yet, have it download automatically. The latter doesn't seem possible right now. To attach a file you need to provide a url, but it doesn't seem to work with data/blob urls. Has anyone found a solution that doesn't involve uploading it to a 3rd party?


ScottWorld
Forum|alt.badge.img+35
  • Genius
  • November 17, 2025

You can easily automate the process of exporting CSV files out of Airtable by using Make’s CSV integrations alongside Make’s Airtable automations.

I demonstrate how to export CSV files out of Airtable using Make on this Airtable podcast episode.

If you’ve never used Make before, I’ve assembled a bunch of Make training resources in this thread. For example, here is one of the ways that you could instantly trigger a Make automation from Airtable

Hope this helps!

If you have a budget and you’d like to hire the best Airtable consultant to help you with this or anything else that is Airtable-related, please feel free to contact me through my website: Airtable consultant — ScottWorld