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!
Update your Profile with your Support type to get your Support Type badge.
Don't miss out on our Pop Quiz You only have until January 16, 2026, 3:30 PM ET to comment your answers and earn rewards! Click here for more details.
Expand your NetSuite knowledge by joining our Ask A Guru Live sessions. RSVP on this event now.
Uncover the power of data with the Analytics Hub —your ultimate guide to mastering NetSuite Saved Searches and Reports. Simplify the complex and unlock your organization's true potential. Dive into the Analytics Hub now and soar to new heights!
Nominate Your Peers for NetSuite Support Community's Choice of the Quarter! Submit your nomination today.
Intelligent Payment Automation version 1.0.3 is now available in the SuiteApp Marketplace. The SuiteApp, powered by BILL, lets you automate payments, manage vendor details, and bank account information within NetSuite. Learn more
No Limits. Just possibilities.
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.
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 launches new wholesale distributions solution in Japan in January 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
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
Trying to retrieve addressbook sublist data from transaction form
I have the following script attached to a form (a sales order form).
What I want it to do is look up an addressbook record with a specific label and use that data to populate some custom fields in the sales order.
The script (below) is able to retrieve the customer record (i.e. the value of the custid variable is set) but the alines variable gets set to -1. What am I doing wrong? This customer has many addressbook entries.
var sp_Messages = ''; function sp_so_helper_pageInit(type) { sp_Messages = 'so_helper.js initn'; var custid=nlapiGetFieldValue('entity'); sp_Messages += 'entity is ' + custid + 'n'; var custo=nlapiLoadRecord('customer',custid); var alines=nlapiGetLineItemCount('addressbook'); sp_Messages += 'num address lines ' + alines + 'n'; sp_so_helper_updateScriptMessage(); } function sp_so_helper_getItemCount() { var lineNum = nlapiGetLineItemCount('item'); return lineNum; } function sp_so_helper_updateScriptMessage() { nlapiSetFieldValue('custbody_sp_scriptmessage',sp_Messages); } 0