Discussions
Join us for complimentary one-day events around the world and step into a future fueled by AI and limitless potential. Explore new breakthroughs, sharpen your skills, and connect with experts who are shaping what’s next. Experience bold keynotes, interactive learning, and connections that span the global NetSuite community. Discover what's next at SuiteConnect Tour 2026.
NetSuite has launched SuiteSuccess Wholesale Distribution Edition, in Japan. Please join us the webinar on February 12 that introduces NetSuite solution with demos and case studies for Wholesale Industry.
Register Now
Adding line items to RevRec Schedule
I filed this as a support case/defect, but didn't get a useful answer there, so I'm trying the forums. For reference sake, case 1387740 and defect 207916.
I am attempting to add lines on a rev rec schedule using SuiteScript. At this point, I am attempting proof-of-concept scripts in the sandbox debugger.
Through the UI, I can add a new line to an RRS with amount zero. I tried the following code, but no line got added to the RRS.
-------------
var rrs = nlapiLoadRecord('revrecschedule', 7491);
rrs.selectNewLineItem('recurrence');
rrs.setCurrentLineItemValue('recurrence','incomeaccount','182');
rrs.setCurrentLineItemValue('recurrence','defrevaccount','316');
rrs.setCurrentLineItemValue('recurrence','recamount',0);