BizTalk Adapter for NetSuite

Build 20.0.7606

Receive Location SELECT Schemas

Executing a SELECT Statement from a Receive Location

The following sections show the schema and response for the following query:

SELECT InternalId, AcctName FROM Account WHERE acctName = 'Checking'

Mapping the SELECT Schema to the Response

SELECT command schemas have only a response section in receive locations.

SELECT Schema

Below is the corresponding schema.

<?xml version="1.0" encoding="utf16" ?> 
<xs:schema xmlns:b="http://schemas.microsoft.com/BizTalk/2003" attributeFormDefault="unqualified" elementFormDefault="qualified" targetAcctNamespace="http://www.cdata.com/NetSuiteProvider/2020" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="table">
    <xs:complexType>
      <xs:sequence>
        <xs:element minOccurs="0" maxOccurs="unbounded" name="row">
          <xs:complexType>
            <xs:sequence>
              <xs:element minOccurs="0" 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:element name="AcctName">
                <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:complexType>
  </xs:element>
</xs:schema>

SELECT Response

Below is the response returned by the adapter:

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

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