Scenario
SuiteTalk users often use the XML Tag <q1:scriptId>custom_record_name</q1:scriptId> on Web Services request to add new record for a Custom Record type using Script ID. The tag above causes an Unexpected error to be returned in the response.
Pre-requisites:
- SuiteTalk / Web Services
- XML Scripting Knowledge
- WSDL 2017.1 is used for the sample XML Tags
Solution
To add a new record on a Custom Record type using script ID, the following XML Tag can be used on the Web Services Request.
<pre><code class="language-xml"><recType xsi:type='platformCore:CustomizationRef' type='customRecordType' scriptId='custom_record_name'/></code></pre>
Note: Please change the 'custom_record_name' to the script ID of the custom record type.
Disclaimer
The sample code described herein is provided on an "as is" basis, without warranty of any kind, to the fullest extent permitted by law. Oracle + NetSuite Inc. does not warrant or guarantee the individual success developers may have in implementing the sample code on their development platforms or in using their own Web server configurations.
Oracle + NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.
Oracle + NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.
Oracle + NetSuite Inc. does not warrant, guarantee or make any representations regarding the use, results of use, accuracy, timeliness or completeness of any data or information relating to the sample code. Oracle + NetSuite Inc. disclaims all warranties, express or implied, and in particular, disclaims all warranties of merchantability, fitness for a particular purpose, and warranties related to the code, or any service or software related thereto.
Oracle + NetSuite Inc. shall not be liable for any direct, indirect or consequential damages or costs of any type arising out of any action taken by you or others related to the sample code.