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.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Keep an eye out for upcoming NetSuite events, including meetups, workshops, and webinars. These sessions are a great way to connect with peers, learn from experts, and stay current on the latest NetSuite updates and best practices. Registration links are provided in each event.
Adding Multiple Addresses to customer addressbook in PHP
I am using nsLib.php (available from SourceForge) to add customer records and sales orders. I am able to add a single entry to the address book, but I can't figure out how to add more than one at a time:
[PHP]
// Addressbook fields
$A = array("defaultBilling" => "true", "defaultShipping" => "false", "label"=>"111", "addr1"=>"111", "addr2"=>"111", "addressee"=>$addressee, "city"=>$city, "phone"=>$phone, "state" => $state, "zip"=>$zip);
// Second address
$A = array("defaultBilling" => "false", "defaultShipping" => "true", "label"=>"222", "addr1"=>"222", "addr2"=>"222", "addressee"=>$addressee, "city"=>$city, "phone"=>$phone, "state" => $state, "zip"=>$zip);
[PHP]
// Addressbook fields
$A = array("defaultBilling" => "true", "defaultShipping" => "false", "label"=>"111", "addr1"=>"111", "addr2"=>"111", "addressee"=>$addressee, "city"=>$city, "phone"=>$phone, "state" => $state, "zip"=>$zip);
// Second address
$A = array("defaultBilling" => "false", "defaultShipping" => "true", "label"=>"222", "addr1"=>"222", "addr2"=>"222", "addressee"=>$addressee, "city"=>$city, "phone"=>$phone, "state" => $state, "zip"=>$zip);
0