Help

Updating Records with Select Fields

Topic Labels: Scripting extentions
1315 2
cancel
Showing results for 
Search instead for 
Did you mean: 
Artifacture
4 - Data Explorer
4 - Data Explorer

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.