问题描述
我想获取所有InventoryItems的列表根据此文件: https://system.netsuite.com/help /helpcenter/zh_CN/Output/Help/SuiteCloudCustomizationScriptingWebServices/SuiteTalkWebServices/getAll.html
I want to get a list of all InventoryItems According to this document: https://system.netsuite.com/help/helpcenter/en_US/Output/Help/SuiteCloudCustomizationScriptingWebServices/SuiteTalkWebServices/getAll.html
我正在形成以下请求:
<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:platformMsgs="urn:platform_2013_1.webservices.netsuite.com" xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header>
<passport>
<email>******</email>
<password>******</password>
<account>******</account>
</passport>
</env:Header>
<env:Body>
<platformMsgs:getAll>
<recordType>InventoryItem</recordType>
</platformMsgs:getAll>
</env:Body>
</env:Envelope>
但是收到错误消息:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<platformMsgs:documentInfo xmlns:platformMsgs="urn:messages_2013_1.platform.webservices.netsuite.com">
<platformMsgs:nsId>WEBSERVICES_969904_100920131651936419141601801_cbf1690968b43</platformMsgs:nsId>
</platformMsgs:documentInfo>
</soapenv:Header>
<soapenv:Body>
<getAllResponse xmlns="urn:platform_2013_1.webservices.netsuite.com">
<platformCore:getAllResult xmlns:platformCore="urn:core_2013_1.platform.webservices.netsuite.com">
<platformCore:status isSuccess="false">
<platformCore:statusDetail type="ERROR">
<platformCore:code>GETALL_RCRD_TYPE_REQD</platformCore:code>
<platformCore:message>The getAll record type is required.</platformCore:message>
</platformCore:statusDetail>
</platformCore:status>
</platformCore:getAllResult>
</getAllResponse>
</soapenv:Body>
</soapenv:Envelope>
我已经尝试过请求货币,状态-响应始终相同
I've tried to request currencies, states - the response always the same
我尝试了以下变体:
<GetAllRecordType>inventoryItem</GetAllRecordType>
和
<recordType>inventoryItem</recordType>
和
<GetAllRecordType>currency</GetAllRecordType>
和
<recordType>currency</recordType>
具有相同的响应:
<platformCore:message>The getAll record type is required.</platformCore:message>
根据 https://webservices.netsuite.com/xsd/platform/v2013_2_0/coreTypes.xsd -我已正确指定了recordType(顺便说一句,我也尝试了但没有成功)
According to https://webservices.netsuite.com/xsd/platform/v2013_2_0/coreTypes.xsd - I've specified correctly recordType (btw I've also tried without any success)
我正在使用ruby,并且没有完整的ruby库.存在的内容几乎不包含我要使用的所有内容.
I'm using ruby and there is no complete library for ruby. The one that is exists doesn't contain almost all things I'm going to use.
有人可以帮我做错什么吗,或者有人可以通过工作举报
Can someone help me what I'm doing wrong or may be someone have working example
推荐答案
getAll不能用于所有记录类型.这是getAll支持的内容:
getAll cannot be used for all record types. Here is what is supported via getAll:
budgetCategory
budgetCategory
campaignAudience
campaignAudience
campaignCategory
campaignCategory
campaignChannel
campaignChannel
campaignFamily
campaignFamily
campaignOffer
campaignOffer
campaignSearchEngine
campaignSearchEngine
campaignSubscription
campaignSubscription
campaignVertical
campaignVertical
costCategory
costCategory
货币
leadSource
leadSource
salesTaxItem
salesTaxItem
状态
supportCaseIssue
supportCaseIssue
supportCaseOrigin
supportCaseOrigin
supportCasePriority
supportCasePriority
supportCaseStatus
supportCaseStatus
supportCaseType
supportCaseType
taxGroup
taxType
这篇关于Netsuite-如何为getall请求指定record_type的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!