I'm using Salesforce Tooling API in my C# application. When I'm trying to run the query:
var res = sforce.query("select id from Attachment where parentid = '" + id + "'");
I get the following error:
INVALID_TYPE: sObject type 'Attachment' is not supported.
I can query Attachment
only when using Partner API, but then I can get only sObject[]
as there is no Attachment
type in wsdl.
I am logged in as System Administrator.
Am I missing something?