In this post, we will learn about a Workbench in Salesforce and what we can do with this tool. Salesforce Workbench is a powerful, web-based suite of tools designed to interact with Salesforce.com organizations via the Force.com APIs. Let’s start our Salesforce workbench guide to learn about how to use workbench.
What is Salesforce Workbench?
A workbench is a web-based tool designed for Salesforce Admin and Developers which allows them to interact with Salesforce organization to insert, update, delete, search and export data. Using the Workbench tool, they can easily perform SOQL and SOSL, view their organization’s data, perform data loading and testing, deploy and troubleshoot their applications, and modify session settings.
Login to the Salesforce workbench
To log in, go to the workbench website, select the type of environment like sandbox/production, and enter credentials to log in. If you are login to the developer edition, then select production. See the below screen for reference.
Features of Workbench for Salesforce Developers
There are different features of Workbench for Developers. Here are some features of Workbench:
- Metadata Explorer
- Data Management Capabilities
- REST API Explorer
- Metadata Deployment/ Retrieval
- Password Management
- Anonymous Apex
Different ways to use Workbench
Let’s see how we can use Workbench in Salesforce and different ways to use this web-based tool.
- Standard & Custom Object Metadata
- Metadata Types & Components
- SOQL using Workbench in Salesforce
- Export data with Workbench
- Mass Data update
- Workbench REST Explorer query
- Deployment using workbench
Let’s see all of them in detail.
# Metadata Explorer
1. Standard & Custom Object Metadata
You can access the metadata details using the workbench Standard & Custom Object Metadata feature. To do so, you need to select the “Standard & Custom Object Metadata” option and then select the SObject that you want to see.
After that click on Select button. Then it will show you all details.
2. Metadata Types & Components
You can also access Metadata Types and component details in the workbench.
# Data Management Capabilities
3. SOQL using Workbench in Salesforce.
Workbench is the best tool for building SOQL for non-developers. follow the below step to run the query from the workbench.
- Login on workbench
- Select the SOQL Query option
- Then select Sobject
- Then select the field which you want in your query
- You can also add a filter from the “Filter result by” column.
- It automatically creates a query for you. Then click on the query button to see the result.
4. Export data with Workbench
You can also export the data using the query builder. You need to click on the “Bulk CSV” or “Bulk XML” option to export the data.
Using Deleted and archived records, you also export data from the recycle bin.
5. Mass Data update
You can also insert, update, delete and undelete a record and mass data update using the workbench.
- Login on workbench
- Select Data Option then select the DML option called Update/insert
- Then select The Sobject.
- Then, upload the file.
- Then click on Next.
# REST API Explorer
6. Workbench REST Explorer query
Let’s see How to run REST API through Workbench.
- Login on workbench
- Go to Utilities -> Rest Explorer.
- Then select the HTTP Method
- You can click on the Header button to change header values
- Then, provide the URL
# Metadata Deployment/ Retrieval
7. Deployment using workbench
You can also deploy using the workbench Migration option. You need to create on zip folder with metadata and package.xml which you can upload to start the deployment. Please check this post to learn about how to do deployments using the workbench.
How to use Salesforce Workbench?
Please check the below recording to learn more about the workbench.
Please subscribe to our YouTube channel to get notifications for video uploads.
Workbench FAQ’s
A workbench is a web-based tool designed for Salesforce Admin and Developers which allows them to interact with Salesforce organization to perform DML, Query, check schema, and deployment in Salesforce.
To log in, go to the workbench website, select the type of environment like sandbox/production, and enter credentials to log in
A workbench is a web-based tool. You need to use the https://workbench.developerforce.com/login.php URL to log in and access it.
No. Workbench is free to use but is not an official salesforce.com product
Yes, Salesforce Workbench is a free web-based tool for Salesforce
Summary
I hope this post helped you to understand what Workbench is and the different ways to use it in Salesforce using this guide. Let us know which feature from Workbench you like a lot.
Very helpful article! Thank you as always Amit!!
Glad this post helped you to understand the Salesforce workbench
That was great. Very valuable tool.
I hope this post helped you to understand the use of workbench in Salesforce
Hi Amit: very helpful article. Can you please advise how must I proceed I a need to run queries that involve more than one table?