How to Find a Record Type ID in Salesforce (Step-by-Step Guide)

Learn the fastest ways to find a Record Type ID in Salesforce using Setup, SOQL, and Salesforce Inspector. Perfect for admins, developers, and automation workflows.

How to Find a Record Type ID in Salesforce

If you work in Salesforce long enough, you’ll eventually need a Record Type ID — whether for automation, integrations, or troubleshooting. It’s one of those small but essential details that often trips people up.

What is a Record Type ID?

A Record Type in Salesforce allows you to offer different business processes, picklist values, and page layouts to different users. Each Record Type has a unique 18-character ID in Salesforce, which you’ll use in formulas, Apex, API calls, or Flow conditions.

Why You Might Need It

Common scenarios include:

  • Creating records via Flow or Process Builder for a specific Record Type

  • Filtering API queries or SOQL by Record Type

  • Setting default record types in integrations

  • Migrating metadata between environments

How to Find It

1. From the Setup Menu

  • Go to Setup → Object Manager

  • Choose the object (e.g., Account, Opportunity)

  • Click Record Types

  • Select the Record Type — the URL will look like: https://yourInstance.salesforce.com/0123X000000abcd

  • That last part is the Record Type ID.

2. Using SOQL

SELECT Id, Name FROM RecordType WHERE SObjectType = 'Account'

3. From Salesforce Inspector

Use the Salesforce Inspector browser extension to quickly pull all Record Types and their IDs.

Pro Tip

Avoid hardcoding IDs in automation. They change between environments. Instead, reference the Developer Name or store IDs in Custom Metadata for smoother deployments.

Article Tags

Salesforce, Record Type ID, Salesforce Admin, Salesforce Developer, SOQL, Flow, Process Builder, Salesforce Tips

Previous
Previous

Creating a Salesforce Support Case

Next
Next

The Future of Chatter in Salesforce