function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ccPeterccPeter 

Why INVALID_TYPE when creating GoogleDoc record with Partner Soap API?

When I try to create a GoogleDoc record using the SOAP Partner API I get an INVALID_TYPE error and a message indicating that this object is not supported. However, GoogleDoc is a fully documented object in the documentation. I attached a Fiddler trace below. Could you please point out what I am doing wrong?

 

Thanks

Peter

 

POST https://na9-api.salesforce.com/services/Soap/u/24.0/00DE0000000KIZ5 HTTP/1.1
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; MS Web Services Client Protocol 2.0.50727.5456)
VsDebuggerCausalityData: uIDPoz4wmquBUIFKsi3W8RPGXNEAAAAAFu
+zmHtbC0aaj84t3XXBKLQ/Jc0JNB5Nmt/8vnEUz6oACQAA
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Host: na9-api.salesforce.com
Content-Length: 843
Connection: Keep-Alive

<?xml version="1.0" encoding="utf-8"?><soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Header><SessionHeader
xmlns="urn:partner.soap.sforce.com"><sessionId>00DE0000000KIZ5!
ARcAQLlaOd_qgwFtjFTH0AGlC3SSj_tgQ5hFOhGub3zPJ9QZ9sr63aVHKJ2wsuKvGbbTIw_L0Jtc_XFq0l.UH2f
Ca5XnBPzR</sessionId></SessionHeader></soap:Header><soap:Body><create
xmlns="urn:partner.soap.sforce.com"><sObjects><type
xmlns="urn:sobject.partner.soap.sforce.com">GoogleDoc</type><Id xsi:nil="true"
xmlns="urn:sobject.partner.soap.sforce.com" /><Name xmlns="">Test4.pdf</Name><ParentId
xmlns="">001E000000BYKYyIAP</ParentId><Url
xmlns="">https://docs.google.com/file/d/0B4CnLVqJh8u5alh1ajgwVjRNRUU/edit</Url></sObjects></create></s
oap:Body></soap:Envelope>

 

 

HTTP/1.1 200 OK
Server:
Content-Type: text/xml; charset=utf-8
Content-Length: 653
Date: Sat, 26 May 2012 17:09:41 GMT

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:partner.soap.sforce.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance"><soapenv:Body><createResponse><result><errors><message>sObject type
&apos;GoogleDoc&apos; is not supported. If you are attempting to use a custom object, be sure to append the
&apos;__c&apos; after the entity name. Please reference your WSDL or the describe call for the appropriate
names.</message><statusCode>INVALID_TYPE</statusCode></errors><id
xsi:nil="true"/><success>false</success></result></createResponse></soapenv:Body></soapenv:Envelope>

JFraileJFraile

Hi.

 

Did you find out any solution?

 

Regards.

ccPeterccPeter

Unfortunately not.