This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let table = base.getTable('People'); | |
let csvFile = await input.fileAsync( | |
'Pick a CSV file to upload', | |
{allowedFileTypes: ['.csv'], hasHeaderRow: true} | |
); | |
if(csvFile) { | |
let fileRows = csvFile.parsedContents; | |
output.text('Here are the first 10 records of your file'); |