I have a custom record sublist on my item records that may or may not have any data. However, when scripting this list, I am trying to do the typical cycle through using nlapiGetLineItemCount and a for loop. However, I've found that when the list is empty, nlapiGetLineItemCount still returns "1". Has anyone come across this before?
for (var i = 1; i <= nlapiGetLineItemCount('recmachcustrecord_item_images_parent'); ++i) { // .... }