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.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Unsubscribe is mandatory field
Hi. I'm new to SuiteTalk and I'm building my interfaces in ASP.NET 2.0 - VB. I am trying to add a customer record. It errors with a response status message stating that Unsubscribe is a required field. I am setting the unsubscribe field to FALSE. Any ideas?
Jennifer
Here's my code
Dim customer As NetsuiteService.com.netsuite.webservices.Customer = New NetsuiteService.com.netsuite.webservices.Customer Dim address As NetsuiteService.com.netsuite.webservices.CustomerAddressbook = New NetsuiteService.com.netsuite.webservices.CustomerAddressbook() lcmd.Connection = lcon lcon.Open() 'Get Customer Info to search by strSQL = "select customerNumber, externalId, parentCustomerNumber, companyName, salutation, firstName, middleName, lastName, title, address1, address2, city, state, country, postalCode, phone, phone_ext, fax, fax_ext, email, website, leadsource, taxExempt, taxIdNumber, accountManagerID, " + _ " accountManagerEmail, termsDescription, termsDays, creditLimit, priceLevel, comments, createDate, createSource, lastModifiedDate, lastModifiedSource from ITK_customer where customerNumber = '" + CustomerNumber + "'" lcmd.CommandText = strSQL reader = lcmd.ExecuteReader() If reader.HasRows Then Do While reader.Read() customer.entityId = reader("CompanyName").ToString customer.companyName = reader("CompanyName").ToString If Len(reader("FirstName")) > 0 Then 0