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
AnagioAnagio 

AA2 appended to returned ID when creating records with API

After creating an entry in a custom object the returned ID has AA2 appended to the end. Is this normal?

 

The ID as you see has AA2 added to the end, when I view this entry in the dashboard the URL only shows a00i0000009cDXN which is the ID of the entry. The entry displays even if AA2 is added.

 

Upserting Contact (existing) Array ( [0] => stdClass Object ( [id] => a00i0000009cDXNAA2 [success] => 1 ) )

 

Just wondering if this is normal with the API and PHP Toolkit. I'm using a developer account and the SOAP client.

 

Thanks

MartinHaagenMartinHaagen

Hi Anagio,

 

yes this is normal. Salesforce IDs are either 15 or 18 characters long - the 15 character is case sensetive while the 18 is not. You can convert from a 15 to an 18 character ID if you want to but in general you can work with wich ever you want as long as you are careful with case. 

 

http://salesforce.stackexchange.com/questions/1653/what-are-salesforce-ids-composed-of

 

Best regards

 

Martin