You need to sign in to do that
Don't have an account?
Fletch
Help needed - cannot get SOQL query to return lookup to queried object
I'm hitting a problem where I am trying to do the following.
1) Querying a table of custom objects "Test_Case__c".
2) For each returned object, creating a new object that has a lookup to the Test Case object.
The WSDL for the "Test_Case__C" table does not appear to include any Id-type field that refers to the object itself.
What do I need to query/do to get the Id field I need for the lookup?
I have the answer from the salesforce tech support team: every object, including custom objects, has an implicit "Id" column that can be queried using that reference string. This column is not mentioned in the WSDL.
I've pointed out that this should be documented somewhere (neither I nor the tech support team could find supporting documentation for this part of the API).
My strong preference would be to have the "Id" column included in the WSDL, and I've asked salesforce to look at that possibility.
Code: The describeSObject call also provides this information. Not sure what it is that you are suggesting.