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.
Creating New Employee address via web services
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;