在SOAPUI中进行Upsert操作以更改salesforce中的“帐户名”

时间:2015-05-26 12:58:45

标签: salesforce soapui

如何在SOAPUI中创建upsert操作,以便更改salesforce中的帐户名称。

使用SOAPUI工具我试着编写一个连接字符串,如UPDATE表名SET列名WHERE列名= SOme值

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
    <soapenv:Header>
   <urn:SessionHeader>
   <urn:sessionId>00Do0000000K8o2!ARMAQPVLekBy0VKNXDIVHysA0Nn2FOAZKJBkixYVB6UnGgpz1oTSmAz2hwE41DhhB12Mf8Zi9wkKuDUHkLlXu84J7IsHrCLk</urn:sessionId>
   </urn:SessionHeader>
   </soapenv:Header>
   <soapenv:Body>
   <urn:query>
      <urn:queryString>
 UPDATE Account SET Name ='Maddi' where Id ='001o000000RIrLhAAL' </urn:queryString>
      </urn:query>
   </soapenv:Body>
</soapenv:Envelope>

错误如下所示

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>sf:MALFORMED_QUERY</faultcode>
         <faultstring>MALFORMED_QUERY: unexpected token: UPDATE</faultstring>
         <detail>
            <sf:MalformedQueryFault xsi:type="sf:MalformedQueryFault">
               <sf:exceptionCode>MALFORMED_QUERY</sf:exceptionCode>
               <sf:exceptionMessage>unexpected token: UPDATE</sf:exceptionMessage>
               <sf:row>1</sf:row>
               <sf:column>0</sf:column>
            </sf:MalformedQueryFault>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

0 个答案:

没有答案