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
DarrenDarren 

Returning ID from query

Using the WS API 2.5 with partner WSDL, I am sending a query of "select id, name, type from account". I get the correct number of rows, but I only get two columns returned, name and type. I have tried various attribute names instead of id, but I just cannot get the id to be returned. Why?

I want the id to drag into a local working table to help build the hierachy for some more accounts to be loaded.

 

 

DarrenDarren

Typical! After spending a day looking for the Id, I now find it on the sObject itself, minutes after I post! I still think that the query should return it with the rest of the fields, or error appropriately. The behaviour is inconsistent for a query language, and had me confused for far too long.