This is the last entry in a 4–part series. Here are links to the first three:

Part 1: Create Your Own REST API Endpoints in Salesforce Using Apex REST
Part 2: Generate a New Certificate with OpenSSL for Use with Salesforce Connected App
Part 3: Create a Connected App in Salesforce as Your Apex REST API Gateway

We’ve done all the preliminary work to allow an external app to connect to our Sales force org, via the REST API endpoints that we have setup (If you haven’t been following along, checkout the earlier parts using the links above). All we…


This entry is part three of a four-part series on “How to Create Your Own REST Endpoints in SalesForce and Consume Them From an External Application.” Here are links to parts 1 and 2:

Part 1: Create Your Own REST API Endpoints in Salesforce Using Apex REST
Part 2: Generate a New Certificate with OpenSSL for Use with Salesforce Connected App

In this installment, let’s explore how to create a new Connected App in Salesforce to serve as the Gateway into our org to external client apps that will be using the APIs we created.

select App Manager from search results

From the Setup App, search…


OpenSSL is a free set of tools that lets you, among other things, create a TLS certificate. You can find out more about this project by visiting their website at openssl.org. I wrote this post as part of my series on “Creating API Endpoints in Salesforce”. This is Part 2 in that series. If you’re interested in that sort of thing, you can checkout Part 1 here: Create Your Own REST API Endpoints in Salesforce Using Apex REST. If you’re simply here to figure out how to generate a TLS (previous known as SSL) certificate using OpenSSL, carry on.

First…


Apex REST allows one to create REST API endpoints within their Salesforce orgs that can then be consumed by outside applications. To create a new API endpoint, first create an Apex class. You can do so by utilizing the Developer Console.

Open the Developer Console by clicking on the gear icon and then selecting “Developer Console”

Salesforce gear menu showing the Developer Console menu item

Create a new Apex Class by selecting File > New > Apex Class

Tom Vaidyan

Software Engineer, working in the IT scene for the past 18+ years. Husband. Father to two lively, energetic boys. We live in Nashville, TN

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store