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

Update a field value with a script

56 1
Showing results for 
Search instead for 
Did you mean: 

I am at a loss. This seems like it should be the easiest thing in the world. I am trying to write the TableID using a script to a field called "TableID". I have the variable value:

var id = base.getTable("Target Activity").id;

This returns the correct value. However, I can't figure out how to set the value to the field. Am I missing something?

1 Reply 1

Can you post a screen shot of your table and field? Are you trying to update the field value for an existing record or create a new record with the field value.

To update the field value for an existing record, you use table.updateRecordAsync(). To create a new record, use table.createRecordAsync(). See the scripting documentation for more info.