record.setSublistValue({ ...
# suitescript
v
record.setSublistValue({ sublistId : 'item', fieldId : 'custcol_employee_list_display', value : employee, line : i, ignoreFieldChange : true }); I am using this function, but its not reflecting in the record. what is the issue could be? could anyone please help?
n
Script type / Entry point?
☝🏻 1
e
You probably don't want
record
setSublist value, but the record instance you defined
👍 1
s
if you added type checking to your game it would prevent making mistakes like that
r
You probably want to access newRecord or oldRecord from the scriptContext. I would take the hint from @NElliott and (always) give script type and entry point when asking questions in here.