Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Salesforce Record ID LookupNew to Visual Studio Code? Get it now.
Salesforce Record ID Lookup

Salesforce Record ID Lookup

Kenneth Brill

|
1 install
| (0) | Free
Look up Salesforce record names by ID from your code — no Salesforce CLI required.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Salesforce Record ID Lookup

A VS Code extension that looks up Salesforce record names by their ID. Select or place your cursor on any Salesforce ID in your code to instantly see what record it refers to — no Salesforce CLI required.

Record ID Lookup in action

Features

  • Cursor / Selection Lookup — Select or place cursor on a Salesforce ID and run the lookup (also in the right-click menu)
  • Automatic ID Detection — Recognizes 15 and 18 character Salesforce IDs
  • Object Type Detection — Determines the object type from the ID's key prefix, with built-in mappings for common objects
  • Copy to Clipboard — Quickly copy the record name or ID after lookup
  • Built-in Org Login — Browser-based OAuth login without installing any CLI

Requirements

  • A Salesforce org authorized on your machine. If none is set up yet, run Salesforce: Log in to Org and the extension opens your browser to authorize.
  • No Salesforce CLI (sf) needed — the extension talks to the Salesforce REST API directly.

Usage

  1. Open a file containing Salesforce IDs
  2. Place your cursor on a 15 or 18 character Salesforce ID (or select it)
  3. Run Lookup Salesforce Record (Command Palette or right-click)
  4. View the record name in the notification popup

Example IDs the extension recognizes:

  • 001xx000003DGbYAAW (Account)
  • 003xx000004TmiQAAS (Contact)
  • 012000000000000AAA (RecordType)

Commands

  • Lookup Salesforce Record — Look up the record at cursor position (also in right-click menu)
  • Salesforce Record ID: Refresh Object Key Prefixes — Clear cached object metadata
  • Salesforce: Log in to Org — Authorize a Salesforce org via browser login (shared with other Wallencreek Salesforce plugins)

Extension Settings

Setting Default Description
wallencreekSf.targetOrg "" Target org username or alias. Shared with other Wallencreek Salesforce plugins. Leave empty to use the org marked as default in the shared org config.
sfRecordId.defaultOrg "" Deprecated: use wallencreekSf.targetOrg. Still honored if set.
sfRecordId.cacheKeyPrefixes true Cache object key prefixes for faster lookups

Supported Objects

The extension includes built-in mappings for common Salesforce objects:

  • Account, Contact, Lead, Opportunity
  • Case, Task, Event
  • User, Profile, Permission Set
  • RecordType
  • Campaign, Contract, Order
  • Product, Price Book, Price Book Entry
  • And many more...

For anything else, the extension queries the org's EntityDefinition to determine the object type.

How It Works

  1. The extension extracts the 3-character key prefix from the Salesforce ID
  2. It resolves the object type from built-in mappings, the session cache, or an EntityDefinition query
  3. It queries the record over the Salesforce REST API (via @salesforce/core — the same credentials the sf CLI stores, so orgs logged in with the CLI work automatically)
  4. The record name is displayed in a VS Code notification

Working with Other Wallencreek Plugins

This extension shares login state and the Salesforce: Target Org setting with the other Wallencreek Salesforce plugins (Apex Picklist Autocomplete, Open Flow, Anti-Pattern Scanner). Log in once and all of them see the org.

Known Issues

None currently. If the org has never been authorized, the lookup prompts you to log in first.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft