How do you interact with Fields that are of type S...
# suitescript
n
How do you interact with Fields that are of type Select? For example, Event, the field Transaction is of type select. I've tried,
Copy code
newEventRecord.setValue({
    fieldId: 'transaction',
    value: "Sales Order #" + tranid   // Or just tranid, Or even id of the Sales Order. Doesn't like anything
});
b
setValue requires you to pass the internal id in as the value
setText requires you to pass in the text value
if given a choice, use setValue. its very precise
n
you're right, I've messed up elsewhere. I set the record to dynamic mode and I think I need to set the customer first before I set the transaction...