Help

Upcoming database upgrades. Airtable functionality will be reduced for ~15 minutes at 06:00 UTC on Feb. 4 / 10:00 pm PT on Feb. 3. Learn more here

Updating Records with Select Fields

Topic Labels: Scripting extentions
278 2
cancel
Showing results for 
Search instead for 
Did you mean: 

I’ve gone documentation blind, so my apologies for what is likely an obvious question.

What is the syntax for traversing/updating nested objects. Specifically,

Simple Type works fine:
await table.updateRecordAsync(record.id,{“Estimate ID”:12345})

This does not:
await table.updateRecordAsync(record.id,{“Status”:‘Estimate’})

Second one is a single select field, and based on the error, I’m supposed to address it like an array or a nested object - but neither . nor notation seems to work, and I don’t see any call or casting functions that apply.

Please tell me what Im missing.

2 Replies 2
await table.updateRecordAsync(record.id, {
  "Status": {name: 'Estimate'}
})

Thank you, works perfectly.

I swear I tried that - I must have had some other error when I did.