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

Query API call returns 15 char CreatedById values

The SOAP API doc says:


"an 18-digit, case-safe version of the ID is returned by all API calls"


Yet for some queries against the Case object, a 15 char id is returned.  See SOAP trace below.


It seems to be related to pulling the Chatter Answer Photo fields of the Case object.  If I remove those from the query, the Id's are returned as 18 char.


2013-06-05T18:27:00Z: Request::<soapenv:Envelope xmlns:soapenv="" xmlns:xsd="" xmlns:xsi="" xmlns:sfdc="" xmlns:sf=""><soapenv:Header><sfdc:CallOptions><sfdc:client>forceAMP/DBAmp/</sfdc:client></sfdc:CallOptions><sfdc:QueryOptions><sfdc:batchSize>2000</sfdc:batchSize></sfdc:QueryOptions><sfdc:SessionHeader><sfdc:sessionId>.......</sfdc:sessionId></sfdc:SessionHeader></soapenv:Header><soapenv:Body><sfdc:query><sfdc:queryString>select CreatedById,CreatorFullPhotoUrl,Id from case </sfdc:queryString></sfdc:query></soapenv:Body></soapenv:Envelope>


2013-06-05T18:27:01Z: Response::<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="" xmlns="" xmlns:xsi="" xmlns:sf=""><soapenv:Body><queryResponse><result><done>true</done><queryLocator xsi:nil="true"/><records xsi:type="sf:Case"><sf:Id>50030000001VEgJAAW</sf:Id><sf:CreatedById>00530000000kQi6</sf:CreatedById><sf:CreatorFullPhotoUrl></sf:CreatorFullPhotoUrl></records>


Hi Bill,

The issue was tracked and addressed; The occurrence is also listed on our Known Issues as Fixed in link below,
Please let us know if you have any further issues.

If this post answers your question, please mark this post as Solved.