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
vanpeltvanpelt 

Duplicate Salesforce Id's returned from query in single record

For some odd reason when I query for a specific Contact it returns two sf:Id's, both are the same, within a single record:


select id, firstName, lastName, email, mailingCity, phone, fax from Contact where web_user_id__c = '2'


Returns:


Contact
0033000000G62kyAAB
0033000000G62kyAAB
Ass
Seeker
bob@test.com




1
DevAngelDevAngel
Right, this is due to the partner wsdl. The sobject is defined with an id field, and when you request id in a query, the sobject.id field is set as well as a field on each record (element of the any field) for the id. Just pick one.