Query API call on case returns 15 char CreatedById values when Photo fields also queried
Last updated 2022-02-10 ·Reference W-1707980 ·Reported By 3 users
Summary
From the API if you have chatter answers turned on and query both createdById and CreatorFullPhotoUrl the returned queryResult will incorrectly have 15 char Id versions for the createdById field, rather than the expected 18 char Id version.
Repro
1. Access salesforce via the API (e.g. DataLoader / Workbench)
2. Run a query on the Cases object
3. Include the CreatedById and CreatorFullPhotoUrl in the query
4. When you run the query you will notice that the CreatedById value contains 15 characters instead of the expected 18
Workaround
Do not include CreatedById and CreatorFullPhotoUrl in the same query
Reported By (3)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.