This topic contains 3 replies, has 0 voices, and was last updated by adurangalvis 9 years, 3 months ago.

  • Author
    Posts
  • #6897

    adurangalvis

    Hello everyone,

    I am trying to create a new address via webservices for an employee. When I compile it and it tells me that address.addressbookAddress.addressee = “John Doe”; is null .

    if (intAddressBookCount > 0)

    {

    lblAddr1.Text = employee.defaultAddress.ToString();

    EmployeeAddressbookList addressList = new EmployeeAddressbookList();

    //addressList.replaceAll = true;

    EmployeeAddressbook[] addresses = new EmployeeAddressbook[intAddressBookCount];

    com.netsuite.sandbox.system.EmployeeAddressbook address = new EmployeeAddressbook();

    address.defaultShipping = true;

    address.defaultShippingSpecified = true;

    address.defaultBilling = true;

    address.defaultBillingSpecified = true;

    address.label = “Test Address”;

    address.addressbookAddress.addressee = “John Doe”;

    address.addressbookAddress.addr1 = “4765 Sunset Blvd Test”;

    address.addressbookAddress.city = “San Francisco”;

    address.addressbookAddress.state = “CA”;

    address.addressbookAddress.zip = “94131”;

    address.addressbookAddress.country = Country._unitedStates;

    // Attach the EmployeeAddressbookList to the employee

    addresses[0] = address;

    addressList.addressbook = addresses;

    employee.addressbookList = addressList;

    var update = .update(newAddress);

    }

    we are using the developer’s guide documentation , and in their example they use customer. We need it to work for an employee but it doesn’t seem to work.

    any help is appreciated.

    thank you
    This is a cached copy. Click here to see the original post.

  • #6898

    nrao

    Hi,

    Below is the sample SOAP I used to update the employee record with a new address :

    // while updating mention the

    true

    true

    _unitedStates

    AAA

    4767 Sunset Blvd Test

    San Francisco

    CA

    94131

    Also did you try using ‘address.addressee’?

    Thanks

  • #6899

    adurangalvis

    Originally posted by nrao

    View Post

    Hi,

    Below is the sample SOAP I used to update the employee record with a new address :

    // while updating mention the

    true

    true

    _unitedStates

    AAA

    4767 Sunset Blvd Test

    San Francisco

    CA

    94131

    Also did you try using ‘address.addressee’?

    Thanks

    Hi Nrao,

    yes we have tried address.addressee and it says doesn’t exist in the current context.

  • #6900

    adurangalvis

    I have attached a screenshot of the error we are getting.

    Thank you

    Attached Files

You must be logged in to reply to this topic.