Posts

Showing posts with the label rest api

REST API using Workbench

Image
REST API using Workbench We can use Workbench tool to test the REST API in any Salesforce org.  Let us discuss some popular scenarios to play with using Workbench tool in our Org. In order to play with Rest API, we need to login to our Salesforce org --> Then go to Workbench ( https://workbench.developerforce.com )  and --> Go to menu Utilities --> Select the REST Explorer . - After selecting the Rest Explorer, we would have so many HTTP methods to choose and to perform any action to our org. - Depending upon the requirement, we might use different methods at different scenarios. Some of the important methods as mentioned below, HTTP Method Description GET Retrieve data identified by a URL. POST Create a resource or post data to the server. DELETE Delete a resource identified by a URL. PUT Create or replace the resource sent in the request body. Scenario 1:  Fetch the complete list of objects in a salesforce org. - Just...

Salesforce Workbench

Image
Workbench in Salesforce 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 provides robust support for Force.com partner, Bulk, Rest, Streaming, Metadata and Apex API's that allows users to Describe, Query, Manipulate and Migrate both data and metadata in Salesforce. It works on a simple web-browser with a simple user interface. It provides many advanced features for testing and troubleshooting the Force.com API's like customizable SOAP headers, debug logs for API traffic, backward compatibility testing with previous API versions and Single-Sign-on integration with Salesforce applications. Main point to note here is that " Workbench is not an official Salesforce product and its free to use on web ".  Even if you raise a case with Salesforce on any Workbench issues, then Salesforce support would not be provided to you at any cost....

Salesforce REST API Integration using Google ARC Tool

Image
Fetch the complete Org limits in Salesforce using REST API - Google ARC Tool Fetch the complete Org limits in Salesforce using REST API - Google ARC Tool The best possible approach would be using the workbench. Please find the below documentation related to workbench. https://help.salesforce.com/articleView?id=Checking-the-SingleEmailMessage-limit&language=en_US&type=1  If in case workbench was disabled in your org, then the remaining options for us would be using the ARC (Advanced Rest Client) or Postman.  Please find the steps to install and how to use the ARC. http://api.hubworks.com/wp-content/themes/hub-dev-portal/docs/Rest-Client-Installation.pdf  After installing the ARC, then we will check how to use the ARC in fetching the results from our Org. Prerequisite would be creating a connected App in our org. Step 1:-  Go to your org → Setup → Apps → Create a new Connected App → Provide All the require details and enable the checkbox named “Enable OAu...

Salesforce Rest API using cURL

Image
cURL installation and setup guide First, download the cURL from the site, https://curl.haxx.se/download.html Select the OS version and download the file accordingly. For example, I have downloaded the 64 bit version for my windows 10, as mentioned in the below screenshot. Once after downloading the same, unzip the same and look for the folder where the “ exe ” file and a “ certificate ” resides. For example, in my machine, the two files located in the path as mentioned in below screenshots,   Then please note down the complete path where both resides and we need to set the path to our System. For example, the complete path in my machine would look like this, C:\Users\ryanamala\Downloads\curl-7.64.0_2-win64-mingw\curl-7.64.0-win64-mingw\bin Now, got to this path Control Panel→ System and Security→ System→ Advanced System Settings → A pop up window opens. Please select the Environment Variables button, Then we need to add the complete path which we copied ea...