Salesforce Object Explorer

A Visual Studio Code extension to explore Salesforce objects, view metadata, and execute SOQL queries directly from your editor.
Overview
The Salesforce Object Explorer simplifies working with Salesforce by integrating object exploration and querying into VS Code. Whether you're a developer debugging Apex or an admin analyzing data, this extension provides a lightweight, intuitive interface to interact with your Salesforce org.
Key Features
- Object Selection: Browse and select Salesforce objects from a sidebar tree view.
- Metadata Inspection: View fields, record types, and page layouts for any object.
- SOQL Query Builder: Build simple SOQL queries with a UI or write custom queries manually.
- Query Results: Display query results in a readable format within VS Code.
- Webview Interface: Interactive sidebar powered by a clean UI for a seamless experience.
What It Does
This extension connects to your Salesforce org via the JSForce library, retrieves metadata, and lets you:
- Explore object structures without leaving VS Code.
- Run ad-hoc SOQL queries to fetch data.
- Debug or prototype queries before using them in Apex or scripts.
Installation (Development Setup)
To set up the extension locally for development or testing:
Prerequisites
Steps
Clone the Repository:
git clone https://github.com/revanthreddymaturu/salesforce-object-explorer.git
cd salesforce-object-explorer
Install the required dependencies:
npm install
Compile the Extension:
Compile the extension using Webpack:
npm run compile
This will bundle TypeScript code into the final extension file located in out/extension.js
.
Launch the Extension:
Open the project in VS Code.
Press F5
to start debugging. This will open a new VS Code window with the extension loaded.
Connect to Salesforce:
Authenticate with your Salesforce org.
Configure your Salesforce credentials (e.g., username, password, and security token) either through the extension’s settings or via prompt.
Usage
Open the Explorer view in VS Code.
Navigate to Salesforce Explorer under the tree view.
Select an object to view its metadata or run a SOQL query.
Example query:
SELECT Id, Name, CreatedBy.Name, (SELECT Id FROM Opportunities) FROM Account LIMIT 10
Roadmap
- Enhanced Query Builder: Improve the query builder to better handle relationship fields.
- Export Query Results: Add functionality to export SOQL query results to CSV/JSON formats.
- Refresh Button for Metadata: Add a refresh button to retrieve updated metadata from Salesforce.
- Nested Subquery Display: Show nested subqueries in tables for better readability.
Contributing
We welcome contributions! Here's how to get involved:
Fork the repository.
Create a new branch:
git checkout -b feature/your-feature
Make your changes and test them locally with:
npm run compile
Commit your changes:
git commit -m "Add your message"
Push your changes:
git push origin feature/your-feature
Open a pull request.
License
This extension is licensed under the MIT License.
Acknowledgments
- Inspired by Salesforce Developer Tools.
Questions?
Feel free to open an issue.
Copyright (c) 2025 none!!