How do you get a sublist inside of an (item receip...
# suitescript
b
How do you get a sublist inside of an (item receipt) record in 2.0? I don't see an API for it.
b
the literal answer is Record.getSublist
i suspect that isn't what you are looking for since that usually is only for metadata about the sublist
b
Yes sorry for lack of context. I'm trying to get each item in an item receipt sublist. So I needed the length of the sublist in order to loop through it.
For anyone looking at this in the future, the solution I found was
nlapiGetLineItemCount('item')
for SS 1.0 and
getLineCount('item')
for SS 2.0.