Help

How to get singeleselect value id?

Topic Labels: Scripting extentions
Solved
Jump to Solution
966 1
cancel
Showing results for 
Search instead for 
Did you mean: 
Jonas_Van_der_R
4 - Data Explorer
4 - Data Explorer

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"
    },
})
1 Solution

Accepted Solutions
Alexey_Gusev
12 - Earth
12 - Earth

Hi,

you don’t need id and color. Use name only
image

to clarify: object {‘name’:‘some_value’}, some_value should exist among available options. if not, you need to edit options at first

See Solution in Thread

1 Reply 1
Alexey_Gusev
12 - Earth
12 - Earth

Hi,

you don’t need id and color. Use name only
image

to clarify: object {‘name’:‘some_value’}, some_value should exist among available options. if not, you need to edit options at first