Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

How to get list of available SalesProduct folders via SOAP (3 Comments)

$
0
0

Topic by Adam

Content

I've been trying, with no luck, to get a list of available folder names/ids available to SalesProduct.

Sending the following body:

<s:Body>
  <ns1:GetValuesForNamedIDHierarchy xmlns:ns1="urn:messages.ws.rightnow.com/v1_2">
    <ns1:FieldName>SalesProduct.Folder</ns1:FieldName>
  </ns1:GetValuesForNamedIDHierarchy>
</s:Body>

Results in:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header></soapenv:Header>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Sender</faultcode>
<faultstring>NamedIDHierarchy not enumerable: SalesProduct.Folder</faultstring>
<detail>
<n0:RequestErrorFault xmlns:n0="urn:faults.ws.rightnow.com/v1_2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<n0:exceptionCode>INVALID_FIELD</n0:exceptionCode>
<n0:exceptionMessage>NamedIDHierarchy not enumerable: SalesProduct.Folder</n0:exceptionMessage>
</n0:RequestErrorFault>
</detail>
</soapenv:Fault>
</soapenv:Body>

I'm importing data from a CSV, which is working fine -- but I'm trying to sort the entries into folders, so I need to lookup the corresponding IDs.. 

Version

August 2014

Viewing all articles
Browse latest Browse all 2504

Trending Articles