The "Open Salesforce Record" extension for Visual Studio Code allows developers to quickly open Salesforce metadata files in the Salesforce org, directly from the VS Code editor. This is particularly useful for navigating to specific metadata components in Salesforce without manually searching for them.
Features
Automatically open Salesforce records directly from your VS Code editor.
Supports various metadata types including Permission Sets, Custom Fields, Layouts, Record Types, Flows, FlexiPages, Validation Rules, Apex Classes, and Custom Applications.
Utilizes the Salesforce CLI (sfdx OR sf) to interact with your Salesforce org.
Without Query: For metadata types like Flow and FlexiPage, the extension directly constructs the URL and opens it.
With Query: For other metadata types, the extension executes a SOQL query using the Salesforce CLI to get the record ID and then constructs the URL to open it in the browser.
Configuration
Ensure you are authenticated to your Salesforce org using Salesforce CLI. Use the command: