I'm trying to access the item under item sublist i...
# suitescript
t
I'm trying to access the item under item sublist in Sales Order, but I'm receiving this error message. What did I missed? Sample Code: const transRec = context.currentRecord;             
var sublistFieldValue = transRec.*getSublistValue*({
                
sublistId: 'item',
                
fieldId: 'item',
                
line: 1
            
});
b
how many lines on the sublist
t
just one only
pay extra attention to the parameters
t
ok i got it. I think i know the problem, i've been searching for line 1 which it should be 0. thanks @battk