I'm trying to create an integration with NetSuite through its WebService platform (SuiteTalk), but i'm having problems while saving a Customer with a CustomField.
Here's my code:
StringCustomFieldRef customField = new StringCustomFieldRef();
customField.setValue("9999999");
customField.setInternalId("custentity_xx_xxx_xxx");
CustomFieldRef[] customFields = new CustomFieldRef[1];
customFields[0] = customField;
Customer customer = new Customer();
customer.setSubsidiary(subs);
customer.setIsPerson(true);
customer.setFirstName("Joe");
customer.setLastName("Silver");
customer.setCustomFieldList(customFields);
_port.add(customer);
No matter what, it's always the same response:
[Fault Message]: org.xml.sax.SAXException: {urn:core_2016_1.platform.webservices.netsuite.com}CustomFieldRef is an abstract type and cannot be instantiated
I'm doing exactly like in the docs and the samples in the Help Center.
Any thoughts?
Thanks.