Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Cannot find function getLineItemCount in object nlobjRecord
Here is my setup.
I am running a user event scripts that pass parameters: newrecord (nlapiGetNewRecord()) and oldrecord (nlapiGetOldRecord()) to a scheduled script.
In scheduled script, I am able to retrieved these parameters but the problem is I can't seem to use functions like 'getLineItemCount' to these retrieved parameters.
newrecord = nlapiGetContext().getSetting('SCRIPT', 'custscript_newrecord');
oldrecord = nlapiGetContext().getSetting('SCRIPT', 'custscript_newrecord');
var newrecord_itemcount = newrecord.getLineItemCount('item'); ---> this is getting the error "Cannot find function getLineItemCount in object nlobjRecord"
Tagged:
0