Free Salesforce Admin Tutorial >

Chapter 6 - Data Management >

Record ID in Salesforce

Record ID in Salesforce

What You’ll Learn

What is a Record ID? What is Record ID in Salesforce?

difference between a 15-digit and an 18-digit Record ID?What is the difference between a 15-digit and an 18-digit Record ID?

How to convert a 15-digit ID into 18 Digit?How to convert a 15-digit ID into 18 Digit?

S2 Labs

What Is Record ID in Salesforce?

Every record has a globally unique identification across the org, value in its ID field which is generated at the time of record creation. That Record ID value will never change, even if the record is deleted and then undeleted.

Entering a known Record ID in Salesforce org URL will direct you straight to the details page of that record.

For example<Record Id>

The first 3 characters of an ID indicate the object type.

For example Accounts – 001, Contacts – 003, Leads – 00Q, etc.

These prefixes can never be changed for objects.

Custom objects are assigned 3-char prefixes based on internal SFDC rules that we cannot predict.

There are two versions of Record IDs:

  1. 15-digit case-sensitive version: It is referenced in the user interface.
  2. 18-digit case-insensitive version: It is referenced through the API. The last 3 digits of it are the checksum of the capitalization of the first 15 characters.

A 15-digit id can be converted into an 18-digit id using CASESAFEID() function and to convert an 18-digit id into a 15-digit simply remove the last 3 digits from it.

Salesforce Record ID


Salesforce Record IDs are identical only in the Full Copy Sandbox and Production environments.

salesforce admin training

Download Study Material

Get access to exclusive study material for Salesforce Certification and ace your exams!

Download Now

Our Salesforce Certification Courses

Hey there! Glad you made it through our Salesforce Admin Training for beginners . But wait! We've got some high-in-demand Salesforce courses for you to take your Salesforce skills to the next level, making you a desired professional in the Salesforce job market.

Post a Comment

Your email address will not be published. Required fields are marked *