Hey everyone
Having a bit of problems with this script.
I have a tasklist and at the end of the record I have a delete button.
When I press the button I want it to delete just that record. But when I use this script it seams to delete just any of the records in the list except the record I want to delete. Can someone pls advise?
// Delete a record in the Tasks table
let table = base.getTable(“Tasks”);
let query = await table.selectRecordsAsync({fields: });
let recordId = query.recordso0].id;
await table.deleteRecordAsync(recordId);
console.log(“Deleted a record!”);