Topic by Leonardo Barbosa
Hello for all,
I am facing some problems with Get request on SOAP UI. See the "Query" request code:
</soapenv:Header>
<soapenv:Body>
<v1:QueryCSV>
<v1:Query>SELECT
Opportunity.customfields.c.idpedido,
Opportunity.customfields.c.tipodepedido.name,
Opportunity.CreatedTime,
Opportunity.customfields.c.cpf,
Opportunity.customfields.c.condicaodepagamento,
Opportunity.customfields.c.mensagemnota,
Opportunity.customfields.c.idantigopedido,
Opportunity.customfields.c.numerodopedido,
itemdopedido,
CodigodoPedido,
Quantidade,
precototal,
precounitario
FROM CO.Detalhedopedido where (Opportunity.customfields.c.flagerp = '1' and Opportunity.customfields.c.statuspedido.name = 'Envio ERP')</v1:Query>
<v1:Delimiter>|</v1:Delimiter>
</v1:QueryCSV>
</soapenv:Body>
</soapenv:Envelope>
The expected result are values of Opportunity custom fields and some fields of CO called Detalhedopedido. But the current behavior is:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>
<soapenv:Fault>
<faultcode>soapenv:Sender</faultcode>
<faultstring>Unknown table or column 'Opportunity'</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_REQUEST</n0:exceptionCode>
<n0:exceptionMessage>Unknown table or column 'Opportunity'</n0:exceptionMessage>
</n0:RequestErrorFault>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>
I don't have any idea about this because Opportunity is a default table.
Someone can help me with this? Any idea about issue?
Sincerely,