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
NElliott
02/28/2023, 5:17 PM
Script type / Entry point?
☝🏻 1
e
ehcanadian
02/28/2023, 5:32 PM
You probably don't want
record
setSublist value, but the record instance you defined
👍 1
s
Shawn Talbert
02/28/2023, 7:18 PM
if you added type checking to your game it would prevent making mistakes like that
r
reptar
02/28/2023, 11:03 PM
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.