A Quick Guide for Setting Up and Invoking Salesforce API
In this blog post you will learn how to build an Appery.io app that connects to Salesforce API. After a login into Salesforce, the app will display a list of Salesforce objects available in your account.
The complete app has the following components:
- App UI (client).
- Server Code for server-side logic to handle OAuth flow.
- Salesforce account and app to access the data in your account.
Let’s get started.
Salesforce App
The first step is to create a Salesforce app which will allow you to access your Salesforce account data.

A new app is created from the left-hand menu in your Salesforce account (Build > Create > Apps). There are a number of important values that you will be using later:
- Consumer Key.
- Selected OAuth Scopes.
- Consumer Secret.
- Callback URL.
Consumer Key and Consumer Secret are generated when you create a Salesforce app. The Callback URL is set by you (I will cover this later). For Selected OAuth Scopes, you can set it to Full access plus any specific scopes. Once you have tested your app, you can start removing scopes and leave only the once that the app requires.
Once you have the Salesforce app configured, next you need to create the app backend.




