I'm trying to convert a script from 1.0 to 2.0. In...
# suitescript
j
I'm trying to convert a script from 1.0 to 2.0. In the 1.0 script this happens 'var columnCount = itemRecord.getMatrixCount(priceID, 'price');' and columnCount is returned as null. However, in 2.0 when I try and use var columnCount = itemRecord.getMatrixHeaderCount({ sublistId: priceID, fieldId: 'price'}); it returns a value of 5. Why would these be returning different values, in the 1.0 to 2.0 map it says that .getMatrixHeaderCount is equivalent to nlapiGetMatrixCount?