Discussions
Can't update customer error is: can't set unsubscribe
Hello:
I pull out a customer object from Netsuite:
CustomerSearchBasic customerSearch = new CustomerSearchBasic();
customerSearch.setEmail(new SearchStringField("my@email.com",SearchStringFieldOperator.is));
SearchResult searchResult = serviceManager.search(customerSearch);
RecordList recordList = searchResult.getRecordList();
Record[] list = recordList.getRecord();
Customer customer = (Customer) list[0];
I get the customer just fine.
But, when I try to update it (Making no changes):
serviceManager.update(customer);
I get this error:
You do not have permissions to set a value for element unsubscribe due to one of the following reasons:
1) The field is read-only;
2) An associated feature is disabled;
3) The field is available either when a record is created or updated, but not in both cases.