Hey there. I’m trying to set up some script to automatically input my Images URL to Attachment. I found some code in this forum but I’m running into errors that I don’t understand.
Code I’m running:
let table = base.getTable('PhantomBuster');
let query = await table.selectRecordsAsync();
for (let record of query.records) {
// if the attachment field is empty
if(record.getCellValue('Image URL') == null) {
if(record.getCellValue('Attachment') == null) {
let recordId = await table.updateRecordAsync(record, {
'Attachment': [
{ url: record.getCellValue('Image URL')}
]
}})
}
}
The error I’m running to is:
SyntaxError: missing ) after argument list
on line 1
at s on line 1
at Generator._invoke on line 1
at Generator.next on line 1
at t on line 1
at a on line 1
on line 1
on line 1
Can anyone help? Thanks
