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
How to create address in customer record type nlapiCreateRecord
Wits end again. Probably me, but becoming blurry-eyed reading docs over and over to find nothing...
I am trying to create a customer record (nlapiCreateRecord('customer')). Works fine, saves fine, etc but can not figure out any way to get the address fields set. Can anyone help? Is it a separate record that is linked? Help. Tried defaultaddress but it didn't work either.
Second question around contact. After I create the customer record, I get the Id back and try to create a contact record associated with the just created customer record. I pass the Id for the 'company' field, and set the other fields I need to. When I submit the record (nlapiSubmitRecord) I get a _funcname not defined. It is in a different try/catch than the field setting and object creating so can't figure it out (see code below). If anyone can spot it please let me know.