Notes
Salesforce IDs are unique identifiers assigned to each record in the Salesforce database. There are two types of Salesforce IDs: 18-digit and 15-digit. Here are the differences between the two:
-
Length: The most obvious difference between 18-digit and 15-digit Salesforce IDs is the length of the ID. 18-digit IDs are, as the name suggests, 18 characters long, while 15-digit IDs are 15 characters long.
-
Case Sensitivity: 18-digit Salesforce IDs are case-sensitive, meaning that uppercase and lowercase letters are considered different characters. 15-digit Salesforce IDs are not case-sensitive, meaning that uppercase and lowercase letters are treated as the same character.
-
Object Reference: The first three characters of both 18-digit and 15-digit Salesforce IDs indicate the object type of the record. However, the 18-digit ID also includes a reference to the ID of the object's parent record.
-
Compatibility: 15-digit Salesforce IDs are compatible with all versions of Salesforce, while 18-digit Salesforce IDs were introduced in Salesforce API version 18.0 and later.
-
Unique Identifiers: Both 18-digit and 15-digit Salesforce IDs are unique identifiers assigned to each record in Salesforce. However, the 18-digit ID provides additional information about the record's relationship to other records, while the 15-digit ID is simpler and easier to work with.
In summary, the main differences between 18-digit and 15-digit Salesforce IDs are their length, case sensitivity, object reference, compatibility, and the additional information provided by the 18-digit ID.