Hi, I’m trying to make a script to set the single select value when a button is pressed. However, it requires an id. How would I get the id of my single select value?
Example of a working script which I’d like to duplicate & set it to another value, the script is fired with a button:
let table = base.getTable("©️ Copyright infringements");
let record = await input.recordAsync('',table).catch()
await table.updateRecordAsync(record.id, {
"Status" : {
"id": "sel3MYJB5QL4jKFdg",
"name": "Approved internally",
"color": "cyanLight2"
},
})