NetSuite Integration - Problems with CustomFieldList
<p>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.</p>

<p>Here's my code:</p>

<pre><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);
</code></pre>

<p>No matter what, it's always the same response:</p>

<pre><code>[Fault Message]: org.xml.sax.SAXException: {urn:core_2016_1.platform.webservices.netsuite.com}CustomFieldRef is an abstract type and cannot be instantiated
</code></pre>

<p>I'm doing exactly like in the docs and the samples in the Help Center.</p>

<p>Any thoughts?</p>

<p>Thanks.</p>