Hi there,
I'm new to the Airtable Community and was hoping someone here might shed some light on a script I'm trying to implement. I am receiving data from a third party form via an AT Webhook. I need to concatenate the image path (ImgPath) submitted from the form when it includes an attachment to create a full URL and then update the PhotoURL field which is set as an attachment in the current record in my AT table . However, when I test my script I get the error:
Error: Field "fldAjZqtaQu8IMl9F" cannot accept the provided value.
Below is the relevant section of myscript:
let imgURL = `https://mydomain.com/${ImgPath}`;
const table = base.getTable("Entries")
const query = await table.selectRecordsAsync({fields:["ImgPath", "PhotoURL"]})
let record = query.records[0].id;
await table.updateRecordAsync(record, {
"PhotoURL": imgURL
})
I see plenty of examples where the update is triggered to batch update the entire table but I am hoping to do the update with each individual Webhook submission.