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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Stay in the Know
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
Be sure you're subscribed to NetSuite communication to stay in the know about monthly happenings, updates and announcements. Subscribe
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