Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6958883
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T15:11:54+00:00 2026-05-27T15:11:54+00:00

I am trying to using Netsuite’s PHPtoolkip_v2010.php to add new customer records and define

  • 0

I am trying to using Netsuite’s PHPtoolkip_v2010.php to add new customer records and define their default shipping and billing addresses. But I’m having trouble wading through the documentation.

Here’s how I create the customer now:

$customer_data = array(
    'firstName'=>$billing_address['first_name'],
    'lastName'=>$billing_address['last_name'],
    'email'=>$email,
    'phone'=>$phone,
    'isPerson'=>true
);
if(!empty($billing_address['company'])) $customer_data['companyName'] = $billing_address['company'];

$customer = new nsComplexObject('Customer', $customer_data);
$new_customer = $ns->add($customer);
if($new_customer->isSuccess) {
    $customer_id = $new_customer->recordRef->nsComplexObject_fields['internalId'];
}

That successfully creates the customer record and returns the Customer’s internalId.

The schema browser lists a field addressbookList of type listRel:CustomerAddressbookList. I assume I need to create a list, add the address to the list, then attach the list to the customer record. But I’m unsure how to go about it.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T15:11:55+00:00Added an answer on May 27, 2026 at 3:11 pm

    I haven’t used the 2010 update much, but I have posted on my blog sample code from previous versions of the toolkit. I assume they should still work.
    Create Netsuite Customer Address Object

    Its worth noting that the structure will change if you have multiple addresses vs a single address. The sample I linked to is for multiple addresses.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempted to create a new Sales Order in Netsuite using PHPtoolkip_v2010.php and
I'm using (trying to use) jQuery to add a class to the first paragraph
I am trying to using a SQL data reader to move records from one
I´m trying using php to generate a set of {URL.callback} to use in javascript.
I have 2 diff strings: index.php?abrir=$1&id=$2 index.php?abrir=$1&livro=$2 id= and livro= so I'm trying using
I'm trying using a TAdoTable component, On form Create I call .Append() and in
I'm trying using NHibernate.Search to get Lucene.NET Score through projections. My domain object implements
In JavaScript, I'm trying using the user's input to search my database. For example,
Help with regular expressions needed. I'm trying using regular expressions and preg_match_all find blocks
How to set entire HTML in MSHTML? I am trying using this assignment: (Document

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.