This topic contains 3 replies, has 0 voices, and was last updated by adurangalvis 9 years, 3 months ago.
-
AuthorPosts
-
August 7, 2015 at 9:33 am #6897
adurangalvisHello 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. -
August 13, 2015 at 9:44 am #6898
nraoHi,
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
-
August 14, 2015 at 9:35 am #6899
adurangalvisOriginally 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.
-
August 17, 2015 at 10:08 am #6900
adurangalvisI have attached a screenshot of the error we are getting.
Thank you
Attached Files
-
AuthorPosts
You must be logged in to reply to this topic.