SObjectTypeHow to Find Salesforce Object ID prefixes (custom or standard)

How to Find Salesforce Object ID prefixes (custom or standard)

How to Find Salesforce Object ID prefixes (custom or standard)

In salesforce every custom and stranded object has specific id. first 3 digits of an Id is an identifier prefix for object and record.

  Steps to find Salesforce Object ID prefixes for custom and Standard Objects

  • First open Developer Console (Click on Setting Gear icon and Click Developer console OR Click Your Name . Click Developer Console).
  • Click Debug | Open Execute Anonymous Window or CTRL+E.
  • Enter Below code in Anonymous Window.
// use customObjectAPIName__c or for Standard object with your object API name
  system.debug('Object Prifix–> ' + customObjectAPIName__c.sobjecttype.getDescribe().getKeyPrefix());
Change customObject__c name with your object API name (i.e Expenses__c OR Account)
Find Salesforce Object ID prefixes
  • Check open log checkbox and click on execute button.
Find Salesforce Object ID prefixes
  • Find 3 digit object Id in Debug log.

For any kind of assistance on this, please feel free to contact me [email protected] do share and comment if you like it

Bravo ! Follow and Like our facebook page to get more post like this

- Advertisement -spot_img

More From UrbanEdge

Top Salesforce Flow Interview Questions & Answers 2024 Part – 3

Top Salesforce Flow Interview Questions & Answers 2024 Part...

Top Salesforce Flow Interview Questions & Answers 2024 Part – 2

This blog will explore some of the most commonly...

Best Practices for Lightning Web Components (LWC)

Lightning Web Components (LWC) is a modern framework by...

Top Salesforce Flow Interview Questions & Answers 2024 Part – 1

Flow Interview QuestionsWhat is Salesforce Flow?Types of Salesforce FlowsWhat...

Mastering Salesforce Flows: Streamline Your Business Processes with Ease

Understanding the benefits of using Salesforce FlowsKey components of...

Top Salesforce Static Code Analysis Tools: Enhancing Code Quality and Security

#Heading1Introduction2What is Salesforce?3The Importance of Code Analysis4Understanding Static Code...

Trigger Challenge #12: Understanding the Trigger on Account and its Impact on Salesforce Development

As a Salesforce developer, understanding how triggers work is...

Best Practices for Apex Triggers

Introduction Apex Triggers are a fundamental aspect of Salesforce development,...
- Advertisement -spot_img