Help

Re: Multiple text files with fileAsync

252 0
cancel
Showing results for 
Search instead for 
Did you mean: 
Brett_Thomas
4 - Data Explorer
4 - Data Explorer

Pretty new to Airtable and Javascript
I’m trying out Airtable to see if I can organize my organizations data better.

When importing new data to our database I would like to read from many text files, collect the data from the files (which unfortunately isn’t organized too great), and insert the data into tables.

Is there a way to queue multiple text files to read with fileAsync? There are hundreds of files, so doing one at a time is not useful.

1 Reply 1
Mike_Pennisi
7 - App Architect
7 - App Architect

The docs only describe a function to “import a file”, input.fileAsync:

Have you considered concatenating your files into a single file and uploading the result?

Alternatively, if you’re more comfortable with other programming languages or tools, you could reformat that one large file into CSV, and then import that into your Airtable Base directly (i.e. without the use of the Scripting Block).