avatarQA-init

Free AI web copilot to create summaries, insights and extended knowledge, download it at here

2309

Abstract

</figure><p id="9289"><b>5-It will take a while to show the collection name in your workspace.</b></p><figure id="9c4b"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*mxeOuJgSw44PZJt6B_XfQw.png"><figcaption></figcaption></figure><p id="6af8"><b>6-Once the workspace is loaded with the newly forked Salesforce API, scroll to bottom of page and click “Get New Access Token”. This will try to open the developer org for browser authentication.</b></p><figure id="8204"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*zN4PAEH1PLk2RU-Lx5wTGA.png"><figcaption></figcaption></figure><p id="1945"><b>7- Click Allow. This will prompt the user to open the authentication in postman tool. Click on the link.</b></p><figure id="c699"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*iyMEvkgLKtXFqfl98_khMw.png"><figcaption></figcaption></figure><p id="a601"><b>8-This will navigate back to postman indicating that authentication was completed. Click “Proceed”.</b></p><figure id="daec"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*3foC0DIR7c6-hd4-pwMJVg.png"><figcaption></figcaption></figure><p id="cea2"><b>9-Copy the instance url as highlighted below and click on “Use Token”.</b></p><figure id="46f8"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*2va8Bk4_ojS-KzO4snzrQw.png"><figcaption></figcaption></figure><p id="4492"><b>10-Newly created token will automatically be populated as shown below:</b></p><figure id="af13"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*H_hCysiN091NckjPaCpDXw.png"><figcaption></figcaption></figure><p id="6b2a"><b>11-Paste the copied instance url under “_endpoint” variable and Click save.</b></p><figure id="fbe2"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*ywJ46n-9kLr7FSafmQNJqA.png"><figcaption></figcaption></figure><p id="17b0"><b>12-Test the connection by navigating to REST&gt;&gt;Versions. Click send for getting the version of the api.</b></p><figure id="35c2"><img src="https://cdn-images-1.readmedium.com/v2/resize:fit:800/1*4sVtKSC6IZB-chpg1P7M0Q.png"><figcaption></figcaption></figure><p id="eb6a"><b>As seen above, we got valid HTTP status code 200 Ok indicating that our connection to the developer org was successful and we are rea

Options

dy for the CRUD operation.</b></p><p id="ae71">That’s all for today. Please support my work by following my page and subscribing for future updates. Thanks for Reading.!!!</p><h1 id="5071">Video Instructions:</h1> <figure id="42b2"> <div> <div> <img class="ratio" src="http://placehold.it/16x9"> <iframe class="" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FQFcYuRJs5QI%3Fstart%3D2%26feature%3Doembed%26start%3D2&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DQFcYuRJs5QI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FQFcYuRJs5QI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" allowfullscreen="" frameborder="0" height="480" width="854"> </div> </div> </figure></iframe></div></div></figure><p id="9eac"><b>References:</b></p><div id="651a" class="link-block"> <a href="https://github.com/forcedotcom/postman-salesforce-apis"> <div> <div> <h2>GitHub - forcedotcom/postman-salesforce-apis: Salesforce API Postman Collection</h2> <div><h3>A Postman collection of 230+ requests for the following Salesforce APIs: Learn more about the Collection: ⚠️…</h3></div> <div><p>github.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/0*7Kx1Box-RfqPnYji)"></div> </div> </div> </a> </div><div id="505a" class="link-block"> <a href="https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/intro_rest.htm"> <div> <div> <h2>Introduction to REST API</h2> <div><h3>REST API provides you with programmatic access to your data in Salesforce. The flexibility and scalability of REST API…</h3></div> <div><p>developer.salesforce.com</p></div> </div> <div> <div style="background-image: url(https://miro.readmedium.com/v2/resize:fit:320/)"></div> </div> </div> </a> </div></article></body>

Part-1 Connect to Salesforce REST API using Postman

Salesforce Rest API is a open source api from forcedotcom to enable easy access to salesforce objects and metadata without using Salesforce UI itself.

Use Case: Consider you are a tester/developer and you need to perform CRUD operations (read/write/update/delete) on salesforce objects like Account, Contact, Case, Opportunities, etc without actually logging into Salesforce UI. Then this series aims to provide step by step instructions of achieving the same.

Please note: I am not a salesforce developer. I am a self taught salesforce learner and it took me several days to figure it out. Hence sharing this knowledge with the help of this guide.

Pre-requisites Setup:

  • Already signed up for Salesforce Developer org.
  • Postman is installed in system.

Instructions:

1- With Postman open, create a new personal workspace

2- Search for keyword “Salesforce api” in the search box.

3-Select “Salesforce API” and once loaded, click on three dots at end to “Create a fork”.

4-Provide any name for fork label and select previously created workspace name under “Workspace” dropdown. Click on fork collection.

5-It will take a while to show the collection name in your workspace.

6-Once the workspace is loaded with the newly forked Salesforce API, scroll to bottom of page and click “Get New Access Token”. This will try to open the developer org for browser authentication.

7- Click Allow. This will prompt the user to open the authentication in postman tool. Click on the link.

8-This will navigate back to postman indicating that authentication was completed. Click “Proceed”.

9-Copy the instance url as highlighted below and click on “Use Token”.

10-Newly created token will automatically be populated as shown below:

11-Paste the copied instance url under “_endpoint” variable and Click save.

12-Test the connection by navigating to REST>>Versions. Click send for getting the version of the api.

As seen above, we got valid HTTP status code 200 Ok indicating that our connection to the developer org was successful and we are ready for the CRUD operation.

That’s all for today. Please support my work by following my page and subscribing for future updates. Thanks for Reading.!!!

Video Instructions:

References:

Salesforce
Salesforce Rest Api
Rest Api
API
Postman
Recommended from ReadMedium