Forum Discussion
jamesv
7 years agoNew Contributor II
Your body statement is invalid as per the SOAP API’s specs. There is a separate region of null fields you have to declare. Your statement should be:
<SOAP-ENV:Body>
<ns0:update>
<ns0:record ns2:type="ns1:Job" internalId="481756">
<ns1:customFieldList>
<ns4:customField ns4:scriptId="custentity777" ns4:internalId="489" ns2:type="ns4:StringCustomFieldRef">
<ns4:value/>
</ns4:customField>
</ns1:customFieldList>
<ns3:nullFieldList ns2:type="ns3:NullField">
<ns3:name>custentity15</ns3:name>
</ns3:nullFieldList>
</ns0:record>
</ns0:update>
</SOAP-ENV:Body>
EDIT: actually, even this is wrong - both of your values should be in the nullFieldList:
<SOAP-ENV:Body>
<ns0:update>
<ns0:record ns2:type="ns1:Job" internalId="481756">
<ns3:nullFieldList ns2:type="ns3:NullField">
<ns3:name>custentity15</ns3:name>
<ns3:name>custentity777</ns3:name>
</ns3:nullFieldList>
</ns0:record>
</ns0:update>
</SOAP-ENV:Body>
jamesv
7 years agoNew Contributor II
FYI you can view the WSDL that defines nullFieldList here:
https://webservices.na1.netsuite.com/xsd/platform/v2016_1_0/core.xsd
The main WSDL is here:
https://webservices.na1.netsuite.com/wsdl/v2016_1_0/netsuite.wsdl