Hi folks, I'm getting this error when I execute a ...
# suitescript
g
Hi folks, I'm getting this error when I execute a Scheduled Script (SS 2.0):
Copy code
"Cannot find function getLineItemCount in object standard record."
This is my code
Copy code
function getTaxGroup(stTaxCode) {

      var recTG = record.load({
        type: record.Type.TAX_GROUP,
        id: stTaxCode,
      });
      var arrTaxGroupResult=[];
      for (var i = 1; i <= recTG.getLineItemCount('taxitem'); i++) {
        arrTaxGroupResult[i][0]= recTG.getLineItemValue('taxitem', 'rate', i);
        arrTaxGroupResult[i][1] = recTG.getLineItemValue('taxitem', 'taxtype', i);
      }
    	return arrTaxGroupResult;
    }
I hope you can help me 🙂