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
ddatbig2ddatbig2 

bug in query with Id field

When I query for Id field as given below I get the Id field twice repeated in the resulting soap.

<queryString>select Id, Name from Account where Id='00......'</queryString>

Where as the the following query returns no Id field.

<queryString>select Name from Account where Id='00......'</queryString>

Thanks,

dd

benjasikbenjasik
This is correct behavior for the partner WSDL

It is returned once so you can call getId on the soap object, and a second time so you can get it through the any field. For example, if you ask for name, fax, id, we'll return id, name, fax, id.

Is this causing problems for you?

Are you using the partner or enterprise wsdl?
ddatbig2ddatbig2

I am using partner wsdl. It is not causing any problem for me as such.

I thought it was an oversight.