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
Add New Item in Addressbook
Anyone help me.I have an array with test data. I need to check that in addressbook and if it not exists then add in list please help me. I have some code but it create some exception.
Code:
$addrArray = array
(
"defaultBilling" => false,
"defaultShipping" => false,
"addr1" => 'Street No 1, ',
"addr2" => '',
"label" => "Test address",
"city" => "Test",
"phone" => "0923456789014",
"country" => "CN",
"addressee" => "Test Addressee",
"zip" => '123456'
);
$CustomerAddressBook = new nsComplexObject('CustomerAddressbook');
$CustomerAddressBook->setFields($addrArray);
$addResponse = $myNSclient->add($CustomerAddressBook);
If anyone have some idea please tell me.
Thanks in advance.