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
hramanihramani 

15 digit and 18 digit Ids with different cases (case Sensitivity)

Can I have the scenario where I can have two records with the same Salesforce Ids with different cases. 
e.g. 
a124T000000kDCa   -- Ajay
a124t000000KDca   -- Hari 

The above is an example of 15 digit Id. Is this scenario possible ?
Is the same scenario possible with 18 digit Ids as well.

Please help.
FARSANA PSFARSANA PS
hai Harmani,

15 Digit Id
ID fields in the Salesforce user interface contain 15-character, base-62, case-sensitive strings.Two unique IDs may only be different by a change in case.(That means a124T000000kDCa,a124t000000KDca  can be two different records)

18 Digit Id
18-digit, case-safe version of the ID is returned by all API calls. The 18 character IDs have been formed by adding a suffix to each ID in the Force.com API. 18-character IDs can be safely compared for uniqueness by case-insensitive applications, and can be used in all API calls when creating, editing, or deleting data.
If you need to convert the 18-character ID to a 15-character version, truncate the last three characters. Salesforce recommends that you use the 18-character ID.

Refer this (https://help.salesforce.com/articleView?id=000324087&language=en_US&type=1&mode=1)

Hope this helps...
Ajay K DubediAjay K Dubedi
Hi,

* The scenario is possible, every record has its unique ID.
* No two records can have the same ID.
* Salesforce uses its own ID for all records regardless of what object it is.
* Record ID is a unique number generated by the Zoho Creator system for every record that has been added to the database.

   eg- a124T000000kDCa   -- Ajay
       a124t000000KDca   -- Hari 
 
 * This is possible Ids are case sensitive.
 * There is a possibility that this case can exist.

I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Ajay Dubedi
www.ajaydubedi.com
Deepali KulshresthaDeepali Kulshrestha
Hi hramani,


Greetings to you!

I have gone through your Query.

15 digit case-sensitive version 
15 digit ID is referenced in the UI
18 digit case-insensitive 
18 digit id is referenced through in the API

e.g. 
a124T000000kDCa   -- Ajay
a124t000000KDca   -- Hari
 
 - This is possible Ids are case sensitive.
 - There is a possibility that this case can exist.

Try below link also for details:

1. http://salesforcesteps.blogspot.com/2015/09/difference-between-15-18-digit-id.html

2. https://developer.salesforce.com/forums?id=9062I000000XmyrQAC

     
I hope you find the above solution helpful. If it does, please mark as Best Answer to help others too.

Thanks and Regards,
Deepali Kulshrestha
www.kdeepali.com