[✅ Solution] Execute script update not updating new value - what am I doing wrong?

Hi! In my automation execute script I have the following, but the code does not update the script all values and value names are correct console.log says Status updated successfully but the option is not changing. What am I doing wrong? The field is a single select, drowndown list with “Purchase Contract Sent To Seller - Pending Response” being the third option.

async () => {
try {
await tape.Record.update(current_record_id, {
status: “Purchase Contract Sent To Seller - Pending Response”
});
console.log(“Status updated successfully”);
} catch (error) {
console.log(“Error updating Status:”, error.message);
}
})();
console.log(current_record_id);

Hi @buildingwealth

I think a couple of things are stoping it working:

  1. Your async wrap
  2. Missing the fields object

CleanShot 2025-05-20 at 06.37.10

try {
await tape.Record.update(current_record_id, {
    fields: {
        status: "Purchase Contract Sent To Seller - Pending Response"
    }
});
console.log(`Status updated successfully`);
} catch (error) {
console.log(`Error updating Status:`, error.message);
};
console.log(current_record_id);
3 Likes

@Jason Thanks you’re the best :grinning: the missing fields: was the problem. :grinning:

1 Like