Skip to main content

Update a field value with a script

  • January 18, 2023
  • 1 reply
  • 271 views

Forum|alt.badge.img+1

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

kuovonne
Forum|alt.badge.img+29
  • Brainy
  • January 18, 2023

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.