What is workbench and how to use workbench??
A free video tutorial from Deepika Khanna
Software Developer,Blogger,Author
47 courses
218,429 students
Lecture description
Workbench is a powerful, web-based suite of tools designed for administrators and developers to interact with Salesforce.com organizations via the Force.com APIs. Workbench also provides many advanced features for testing and troubleshooting the Force.com APIs, such as customizable SOAP headers, debug logs for API traffic, backward compatibility testing with previous API versions, and single sign-on integration within the Salesforce application.
Learn more from the full course
Salesforce Developer Training with real-time project Part 1
Salesforce Development: Learn apex, Visualforce and REST Webservices with this real-time project
04:00:15 of on-demand video • Updated September 2025
Integrate Salesforce application with external applications
Create there own custom application using APEX
Expose there apex methods as SOAP webservices
Able to answer any interview questions related to APex and webservices
Create controller extension,Trigger, Apex Class, Apex Test class,Custom controller, Restful webservices and SOAP webservices
English [Auto]
Oh, folks, welcome back. So in this tutorial, I'm going to go ahead and show you how you can access the Salesforce data outside of the Salesforce so you can go ahead and log in to the workbench. This is Workbench Dot Developer Force.com. This is outside of the Salesforce, but it will take care that okay, if you're logged in in another window to the Salesforce account, it will it will use the same session. So here you are. Let's say you're using the production. You can go ahead and select the production environment and you can go ahead and select the latest version, which is 35. Agree to this terms and condition and log in with Salesforce. Now, here you have to go ahead and go to the Express Explorer Select. Now, this is what I was talking about. So this is a rest explorer and this is how we're going to go ahead and access everything on this particular Salesforce. Now, slash services, slash data, 30 5.0. Now let's go ahead and execute this one. Once you do that, you will go. You will see all the all the different in all the different information on different objects you can say which is available. Now let's say we are only interested in looking at the objects, which is the basically the standard objects. So I'm going to go ahead and say standard objects here. So we execute. And then we can go ahead and click on the objects here and we can just go ahead and say object and let's execute. Now, this is going to give you a list of all the different standard objects that are available. Now, if you wanted an information on a particular account, let's say you wanted an information on a this particular account. So we'll go ahead and get the ID for this account and we'll say s object. And since we only we are talking about this, these are the different objects. We're talking about the account here. So we're going to go ahead and say account object with the ID of this is the particular ID, So now this will give you information about the account. Whose ID is this one? So it tells you the name, it tells you the type, it will tell you all the shipping, billing address, etcetera. Now if you want the information to be in XML. So right now this is a Json format. If you want the information to be in an XML, then you can go ahead and say accept the information in an XML format. Then in that case, this is what the response will come as. So if you can change the header so you can change the header from XML to Json or Json to XML and now you can see that the response status is 200 means I was able to go ahead and get that particular object. Now it also gives you a lot more information about the browser that I'm using and all the times, etcetera. So this is the extra information that comes along in the response. Now here I have all the XML, this is how the XML looks like. So it tells you about the name of the account, the type of the account, the billing address of the account, billing, city billing, state, etcetera. So all this information is there for that particular account. So now here, if let's say if that particular account ID is not existing, then the status is going to go ahead and change and it is going to be 404 because that particular thing, that particular resource was not found. So here it's going to give you an error code of not found. So let's say if you wanted to go ahead and access a particular another object, which is, let's say a contact object or let's say cases object, whatever it is. So let's go ahead and take a look at these particular objects. So let's say I wanted to go ahead and find and take a look at this one. So now what you can do is you can go back here instead of the accounts. We'll go ahead and execute. Now, we are interested in a contact object. So what we're going to go ahead and do here, so get method so you can see that we are doing a get means. We are retrieving something, we are retrieving something from the Salesforce. We are not going to we are not doing we are not adding something. We are retrieving something. The post method is basically when you need to add something on the server. Let's say I wanted to go ahead and add a new account here, so we'll talk about that also. So right now, if I wanted to access an account object, so let me first change the header back to the Json here. So I want you to see a Json. So right now we're going to go ahead and take a look at the object. Let's say we are talking about the we're talking about the contact. So here you can go back here and you can look for a contact object here. So you go ahead and click on that one. So you can say objects slash. Contact and then the ID for that particular contact. So let's say this is the ID of that contact. So now if you have that information, you can go ahead and add, you can get this information. And if you want to look in a better way, you can always go ahead and change it back to next HTML. So it'll give you it. You can take a look at this response. So this is how you're getting the information from this particular from this Salesforce. So we are accessing all the Salesforce information outside of the Salesforce. Now, let's say if you wanted to go ahead and put something. So what we're going to do is let's say I wanted to go ahead and put something. So let's say we want to put it on the account object. Now here, you're going to go ahead and provide the head information as you what you a content type means. What kind of thing? It's going to give it, except is what kind of information it's going to accept and what we are sending it to. So we are sending it Json. So I'm going to go ahead and give the name of the account. So name of the account is let's say this is a Json. How you write name of the account is Deepika account. So this is the information. And I'm going to go back here and I'm going to go ahead and do a post method here because I'm creating a new object. I'm creating a new account here outside of the Salesforce. So right now, there is no account object with the name Typica. So let's see, what are the mandatory fields Account name is the only mandatory field and the name is basically the name. So we're going to go ahead and click execute here. So now it has successfully done and let's see if it has created an account for us or not. See, it has created an account with the account name. So this is how you can access the Salesforce data outside of the Salesforce and each of the standard and the custom objects that you're going to go ahead and create, you will be able to access them through the workbench. Now rest comes into picture when you want to do some complex functionalities, let's say with the account information you wanted to get the cases, information and all that stuff. So in those cases, those rest will come into picture. We are going to go ahead and write some rest resources from our next tutorial.