Discussions
Read on for the latest updates including:
• Agenda Builder launch
• SuiteWorld On Air registration
• New NetSuite Prompt Studio Contest
• And more!
Check out this thread to learn more!
Don’t miss your chance to meet our SuiteGurus—NetSuite Support professionals and subject matter experts with extensive experience in select product areas, including OneWorld, Advanced & Basic Accounting, Supply Chain Management, Receivables & Payables, CRM, Account Administration, and the SuiteCloud Platform. Full Conference attendees can prebook exclusive 30-minute one-on-one sessions for your product questions.
Spots are limited! Register through your Agenda Builder and find SuiteGuru under Agenda Enhancements.
Problems when passing Record object as script parameter
I can't seem to get the actual data in a record object.
From User Event script:
var newrecord = nlapiGetNewRecord();
var oldrecord = nlapiGetOldRecord();
var params = {};
params.custscript_newrecord = newrecord;
params.custscript_oldrecord = oldrecord;
nlapiScheduleScript('customscript_sc_scriptid', 'customdeploy_sc_deployid', params);
....
In Scheduled Script:
var newrecord= nlapiGetContext().getSetting('SCRIPT', 'custscript_newrecord');
var oldrecord = nlapiGetContext().getSetting('SCRIPT', 'custscript_oldrecord');
var newrecord_itemcount= newrecord.getLineItemCount('item'); -----> I get an error here that says "Cannot find function getLineItemCount in object nlobjRecord"
I have already tried doing JSON.stringify and JSON.parse but it's also not working.
Any help is greatly appreciated.
Thanks!
Leaderboard
Community Whiz
Quarter 3 (Jul-Sep 2025)
This Week's Leaders
This Month's Leaders
All Time Leaders
Loading