BizTalk Adapter for NetSuite

Build 20.0.7606

INSERT Command Schemas

Executing an INSERT

The following sections show the request, response, and schema for the following parameterized statement:

INSERT INTO [Account] (AcctName) VALUES (@AcctName)

Mapping the Insert Schema to the Request and Response

An INSERT schema for a solicit-response port contains sections for input parameters and the response. Solicit-response send ports can return the rows affected by an insert and the Ids for the new records.

Schemas for a one-way send port have the same request section, so the request is the same; however, there is no response section so a one-way send port does not return the affected rows. Also, one-way send ports do not return new record Ids.

INSERT Schema

Below is an example schema for a parameterized query executed from a solicit-response send port.

<?xml version="1.0" encoding="utf16" ?> 
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetNamespace="http://www.cdata.com/NetSuiteProvider/2020" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="parameters">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="AcctName" type="xs:string" /> 
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="table">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="row">
          <xs:complexType>
            <xs:sequence>
              <xs:element name="InternalId">
                <xs:complexType>
                  <xs:simpleContent>
                    <xs:extension base="xs:string">
                      <xs:attribute name="IsNull" type="xs:boolean" /> 
                    </xs:extension>
                  </xs:simpleContent>
                </xs:complexType>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
      <xs:attribute name="AffectedRows" type="xs:int" /> 
    </xs:complexType>
  </xs:element>
</xs:schema>

INSERT Request

Below is the input instance:

<ns0:parameters xmlns:ns0="http://www.cdata.com/NetSuiteProvider/2020">
  <ns0:AcctName>AcctName_0</ns0:AcctName> 
</ns0:parameters>

INSERT Response

Below is the response:

<ns0:table AffectedRows="3" xmlns:ns0="http://www.cdata.com/NetSuiteProvider/2020">
  <ns0:row>
    <ns0:InternalId IsNull="true">InternalId_0</ns0:InternalId> 
  </ns0:row>
  <ns0:row>
    <ns0:InternalId IsNull="true">InternalId_0</ns0:InternalId> 
  </ns0:row>
  <ns0:row>
    <ns0:InternalId IsNull="true">InternalId_0</ns0:InternalId> 
  </ns0:row>
</ns0:table>

Copyright (c) 2020 CData Software, Inc. - All rights reserved.
Build 20.0.7606