salesforce object key prefix list

Salesforce Object Key Prefix List

When working with data in Salesforce, understanding the unique key prefixes associated with each object is essential. These key prefixes play a critical role in identifying and accessing the various objects within your Salesforce organization.

In this blog post, we’ll take a closer look at the Salesforce Object Key Prefix List, what it is, and how it can be used to make working with your Salesforce data even more efficient and effective. 

Whether you’re a seasoned Salesforce pro or just getting started, this list is an invaluable resource for understanding and navigating the many objects in your Salesforce organization. So, let’s dive in and explore what the Salesforce Object Key Prefix List offers!

What is the Salesforce Object Key Prefix?

A Salesforce Object Key Prefix is a unique three-character code used to identify and reference a specific object within a Salesforce organization. 

These key prefixes are used in Salesforce’s API and URLs to identify the specific object being accessed or manipulated. Each object in Salesforce, such as Accounts, Contacts, Leads, Users, Campaigns, Cases, Solutions, Contracts, Products, Orders, Opportunities, Custom Objects, Notes, and Tasks, has a unique key prefix. 

These key prefixes can be used programmatically to access and manipulate the data within those objects.

For instance, if you wanted to access the Accounts object in a Salesforce organization, you would use the key prefix “001” in the URL or API call. This would tell the system that you want to access the Accounts object and the data within it.

Salesforce Bootcamp

Below is the List of Salesforce Object Key Prefix

Object Key prefix Object Type
1 Account
00r Account Share
04m Additional Directory Number
01p Apex Class
07L Apex Debug Log
707 Apex job
01q Apex Trigger
806 Approval
04i Approval Request
ka0,KA0 Article
02i Asset
00P Attachment
01m Business Hours
19 Business process
04v Call Center
701 Campaign
00v Campaign Member
01Y Campaign Member Status
08s Campaign Share
500 Case
00a Case Comment
01n Case Share
10 Case Solution
02o Category Data
02n Category Node
0F9 Chatter Group
0FB Chatter Group Member
09a Community
3 Contact
00K,02Z,03j,02a Contact Role
03s Contact Share
68,069 Content
800 Contract
00b Custom Button or Link
01N Custom S-Control
15 Document
05X Document Entity Map
91 Email Service
93 Email Services Address
18 Email Status
00X Email Template
0.00E+0 Entity Subscription
00U Event
20 Event Attendee
0D7 Feed Comment
0F7 Feed Post
0D6 Feed Tracked Change
22 Fiscal Year Settings
00l Folder
608 Forecast Share
00G Group
11 Group Member
0C0 Holiday
87 Idea
00a Idea Comment
kA# Knowledge Article
ka# Knowledge Article Version
00Q Lead
01o Lead Share
16 Letterhead
01H Mail merge Template
0D5 News Feed
2 Note
6 Opportunity
8 Opportunity History
00k Opportunity Product
00t Opportunity Share
00J Opportunity Competitor
00D Organization
0D2 Org Wide Email Address
00l Partner
26 Period
01s Price book2
01u Price book Entry
04g Process Instance
04h Process Instance Step
01t Product
00e Profile
03g Queue Sobject
12 Record Type
00E User Role
08e Scheduled Job
0DM Site
501 Solution
81 Static Resource
00T Task
5 User
100 User License
03u User Preference
0D5 User Profile Feed
99 Visual force component
66 Visual force Page
83 Vote

How Can the Salesforce Object Key Prefix Be Used in Salesforce? 

Salesforce Object Key Prefixes are like secret codes that unlock the gates to all of your organization’s Salesforce data. These three-character codes are like keys that help you identify and access specific Salesforce objects.

Assume you’re a detective trying to unravel a case and need to gather data from various sources. 

Likewise, in Salesforce, you may need to collect data from various objects such as Accounts, Contacts, Leads, and so on. Each object in Salesforce has its unique key prefix, and by using these key prefixes, you can programmatically access and alter the information within those objects.

Salesforce Object Key Prefix List

Predict you want to fetch all information related to Accounts in your organization. Use the key prefix “001” in the URL or API call, and you’re done! You will have direct exposure to all Accounts data in your Salesforce organization.

These key prefixes can also be used to generate custom URLs for objects, which can be useful for creating custom links in emails.

In short, Salesforce Object Key Prefixes are an influential and compelling tool that will aid you in streamlining your data management and making it simpler to access the information you demand when you entail it.

Get your Salesforce Certifications on the first go

Use Coupon Code BLOG20 to avail flat 20% discount on saasguru Programs.

Summing Up 

The Salesforce Object Key Prefix List is a powerful resource for any Salesforce user. With this list, users can quickly detect objects and fields in Salesforce and build special objects. When working with Salesforce, you can save significant time and effort by getting acquainted with the list. 

When equipped with the right tools, Salesforce can be an influential platform for handling data and developing custom applications. What are you waiting for? Begin exploring the Salesforce Object Key Prefix List. 

If you need more clarification on this or anything on Salesforce, join the saasguru Slack community and interact with experienced Salesforce professionals.

Are you looking to start your career in Salesforce? Take that first step by enrolling in our Salesforce Admin Exam Prep Course and getting certified on your first attempt. Get personalized study plans, free mock exams, quizzes, flashcards and so on. 

Frequently Asked Questions (FAQs)

1. How to find the Salesforce Object Key Prefix for an object?

To find the Salesforce Object Key Prefix for a specific object, you can refer to the Salesforce Object Key Prefix List provided in the Salesforce documentation or platform. Additionally, when accessing an object in Salesforce through the URL, the key prefix can be seen as the first three characters of the record ID in the URL.

2. What are the different types of Salesforce Object Key Prefix?

The Salesforce Object Key Prefix is a unique three-character code used to identify and reference specific objects within a Salesforce organization. The content you provided lists several key prefixes for various objects. Some examples include:

  • “001” for Account
  • “01p” for Apex Class
  • “3” for Contact
  • “6” for Opportunity
  • “5” for User

and many more. Each object in Salesforce has its unique key prefix, which can be found in the Salesforce Object Key Prefix List.

3. What are the limitations of using the Salesforce Object Key Prefix?

  • The key prefix is specific to the object type and not to individual records. This means you cannot identify a unique record using the key prefix alone.
  • Relying solely on key prefixes can be confusing if you’re not familiar with the corresponding objects, as they are just three-character codes.
  • Key prefixes are essential for developers and administrators but might not be as relevant for end-users who interact with Salesforce through the user interface.
  • Using key prefixes requires a deeper understanding of Salesforce’s data structure, which might not be suitable for beginners.