我正在尝试通过 API 列出发货项目(UPS、FedEx 等)。正如它在Accounting > Shipping Items > List 中显示的那样。
ItemFulfillment Record的文档建议我使用操作GetSelectValue来列出 shipMethod 可能的值(与 Ship Items 相同)。
GetSelectValue的文档(第 125 页)描述了我需要使用的 SOAP 请求:
<env:Body>
<platformMsgs:getSelectValue>
<fieldName fieldType="sales_salesOrder_shipMethod"/>
</platformMsgs:getSelectValue>
</env:Body>
Run Code Online (Sandbox Code Playgroud)
但它不起作用,似乎fieldType是错误的。
<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>
Run Code Online (Sandbox Code Playgroud)
我在哪里可以找到正确的fieldType来获取发货物品列表?
小智 0
<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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3852 次 |
| 最近记录: |