When accessing a sales order item sublist I'm want...
# suitescript
n
When accessing a sales order item sublist I'm wanting to access each line's Quantity fulfilled. Records browser implies this would be similar to the quantity.
var fulfilledQty = objRecord.getSublistValue({
sublistId	: 'item',
fieldId	: 'quantityfulfilled',
line 		: i
})
Any tips on accessing?
c
What errors are you getting?
n
fulfilledQty :undefined
replacing 'quantityfulfilled' with 'quantity' returns the line's Qty.
c
What sort of script is it, and is the field on the form (if applicable)?
n
SS 2.0, standard sales form, vanilla native fields. Record browser suggests these are the field names
c
Client script?
s
works fine for me in the console
Copy code
let objRecord = record.load({
type: record.Type.SALES_ORDER,
 id: 69952});
objRecord.getSublistValue({
    sublistId: 'item',
    fieldId: 'quantityfulfilled',
    line: 0
});
264
n
thanks @CD & @Sandii. newbie problem I was looking at record after the SO after the transform