Salesforce Record ID
A Salesforce Record ID is a system-generated unique identifier assigned to every record in a Salesforce org.
Definition
A Salesforce Record ID is a system-generated unique identifier assigned to every record in a Salesforce org. It is available in both a 15-character case-sensitive format and an 18-character case-insensitive format (which includes a 3-character checksum suffix). Record IDs are immutable and serve as the primary key for accessing, querying, and relating records throughout the platform.
In plain English
“A Salesforce Record ID is a system-generated unique identifier assigned to every record. It comes in 15-character (case-sensitive) and 18-character (case-insensitive) formats. The first three characters identify the object type. It's used everywhere: URLs, API calls, formulas, and relationships.”
Worked example
A developer at Cedar Crest Pharmacy is building a URL formula on the Account record that links to an external compliance dashboard - the dashboard expects the Account's Salesforce Record ID as a query parameter. He uses CASESAFEID() to produce the 18-character case-insensitive form rather than the 15-character case-sensitive default, because the company's Excel-based compliance reports lowercase any 15-char IDs and break the lookup. The 18-char ID has a 3-character checksum at the end that survives lowercasing intact. Switching one formula function call eliminates a class of "row not found" errors in the compliance pipeline that the team had been hand-fixing for months.
Why Salesforce Record ID matters
A Salesforce Record ID is a system-generated unique identifier assigned to every record in a Salesforce org. It is available in both a 15-character case-sensitive format and an 18-character case-insensitive format. The first three characters of the ID identify the object type (key prefix), enabling quick identification of what type of record an ID refers to.
Record IDs are foundational to how Salesforce works as a database. Every lookup field, every relationship, every API call, and every URL references records through their IDs. Using 18-character IDs in integrations is a best practice because external systems may not preserve case, which would break 15-character IDs. Mature developers and integrators standardize on 18-character IDs for reliability.
How organizations use Salesforce Record ID
Standardizes on 18-character IDs in all integrations for case-insensitivity safety.
Teaches Record ID structure including object prefixes as foundational Salesforce knowledge.
Uses ID prefixes for quick identification of object types during debugging.
Test your knowledge
Q1. What is a Salesforce Record ID?
Q2. Why use 18-character IDs?
Q3. What do the first 3 characters indicate?
Discussion
Loading discussion…