如何在NetSuite上列出配送方式?

如何在NetSuite上列出配送方式?,netsuite,Netsuite,我试图通过API列出发货项目(UPS、联邦快递等)。如图所示 的文档建议我使用操作GetSelectValue列出shipMethod可能的值(与ShipItems相同) GetSelectValue()的文档描述了我需要使用的SOAP请求: <env:Body> <platformMsgs:getSelectValue> <fieldName fieldType="sales_salesOrder_shipMethod"/>

我试图通过API列出发货项目(UPS、联邦快递等)。如图所示

的文档建议我使用操作GetSelectValue列出shipMethod可能的值(与ShipItems相同)

GetSelectValue()的文档描述了我需要使用的SOAP请求:

  <env:Body>
    <platformMsgs:getSelectValue>
      <fieldName fieldType="sales_salesOrder_shipMethod"/>
    </platformMsgs:getSelectValue>
  </env:Body>

但它不起作用,似乎字段类型是错误的

    <soapenv:Fault>
      <faultcode>soapenv:Server.userException</faultcode>
      <faultstring>org.xml.sax.SAXException: fieldType not found on {urn:core_2013_2.platform.webservices.netsuite.com}GetSelectValueFieldDescription</faultstring>
      <detail>
        <ns1:hostname xmlns:ns1="http://xml.apache.org/axis/">partners-java10005.bos.netledger.com</ns1:hostname>
      </detail>
    </soapenv:Fault>

soapenv:Server.userException
org.xml.sax.SAXException:在{urn:core_2013_2.platform.webservices.netsuite.com}GetSelectValueFieldDescription上找不到fieldType
partners-java10005.bos.netledger.com
我在哪里可以找到正确的字段类型以获取发货项目列表?


<soap:Body> 
    <platformMsgs:getSelectValue> 
      <platformMsgs:fieldDescription> 
        <platformCore:recordType>salesOrder</platformCore:recordType> 
        <platformCore:field>shipMethod</platformCore:field> 
      </platformMsgs:fieldDescription> 
      <platformMsgs:pageIndex>0</platformMsgs:pageIndex> 
    </platformMsgs:getSelectValue> 
</soap:Body> 
销售订单 船运方法 0
多亏了这篇文章,我才想出了一个C#解决方案

var methods = new Hashtable();
var shipMethodFieldDesc = new GetSelectValueFieldDescription()
{
    field = "shipmethod",
    recordType = RecordType.estimate,
    recordTypeSpecified = true
};

// make connection.    

var result = connection.Service.getSelectValue(shipMethodFieldDesc, 0);
if (result.status.isSuccess)
{
    for (var i = 0; i < result.totalRecords; i++)
    {
       // cast to RecordRef 
       var itemRef = (RecordRef)result.baseRefList[i];

       methods.Add(itemRef.internalId, itemRef.name);
    }
}
var methods=newhashtable();
var shipMethodFieldDesc=新建GetSelectValueFieldDescription()
{
field=“shipmethod”,
recordType=recordType.estimate,
recordTypeSpecified=true
};
//建立联系。
var result=connection.Service.getSelectValue(shipMethodFieldDesc,0);
if(结果、状态、发布成功)
{
对于(var i=0;i
但问题出在哪里?请不要只是在没有解释的情况下发布代码,这里的某个地方应该有另一个帖子的链接吗?