---
title: "Integrate Salesforce: Step-by-step guide by Truto"
slug: integrate-salesforce
date: 2023-01-12
author: Roopendra Talekar
categories: [Guides]
excerpt: Integrate Salesforce in less than an hour with this detailed guide. Follow along using screenshots and direct links to get what you need.
tldr: "Learn how to integrate Salesforce by creating a Connected App for REST API access, configuring OAuth scopes, and authenticating users across any instance using a single developer setup."
canonical: https://truto.one/blog/integrate-salesforce/
---

# Integrate Salesforce: Step-by-step guide by Truto


This blog will act as a reference for creating an OAuth web application for [Salesforce](https://www.salesforce.com/) to interact with the [REST API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_list.htm). We have done the grunt work and have listed out *just* the resources you need to integrate.

> This post is not an in-depth tutorial on how to build OAuth apps in general, some prior knowledge of how OAuth apps work is required.

## Signup for a Salesforce Developer Account

Head on over to [https://developer.salesforce.com/signup](https://developer.salesforce.com/signup) to sign up for a Salesforce Developer Edition account.

![Salesforce Developer Edition Signup](https://truto.one/images/content/integrate-salesforce-0.png)

## Create a new Connected App

This is an OAuth app you will use to get the credentials for users and call the REST API endpoints

1.  Search for "App Manager" in the search box on top of the screen.
    

![Search for App Manager](https://truto.one/images/content/integrate-salesforce-1.png)

2\. Click "New Connected App" button on the top right corner of the screen

![Create new Connected App](https://truto.one/images/content/integrate-salesforce-2.png)

3\. Punch in the basic information of the app

![New Connected App Basic Information](https://truto.one/images/content/integrate-salesforce-3.png)

4\. In the API (Enable OAuth Settings) section, check Enable OAuth Settings. Fill in the callback URL, and make sure to select `Manage user data via APIs (api)`  and `Perform requests at any time (refresh_token, offline_access)` OAuth Scope s along with other scopes required by your app.

![OAuth Settings for the Connected App](https://truto.one/images/content/integrate-salesforce-4.png)

⚠️ If you are using Truto as your integrations provider, please **uncheck** the PKCE checkbox.

5\. On the App's detail page, click Manage Consumer Details button, it will open a new tab and ask for an OTP sent to your email.

![Button to view Client ID and Client Secret](https://truto.one/images/content/integrate-salesforce-5.png)

6\. After entering the OTP, you will see your Consumer Key (Client ID) and Consumer Secret (Client Secret) on the screen. Make a note of them.

![Client ID and Secret](https://truto.one/images/content/integrate-salesforce-6.png)

## OAuth flow (Generating access tokens)

Once you have the Consumer Key and Consumer Secret, the OAuth flow Salesforce follows is pretty straightforward.

You can find all the OAuth Endpoints [here](https://help.salesforce.com/s/articleView?id=sf.remoteaccess_oauth_endpoints.htm&type=5). Use any OAuth client of your choice to initiate the OAuth flow.

Once you have the `access_token`, you can use `Bearer` authentication with the [Salesforce REST API](https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/resources_list.htm).

## Connected apps are available for all Salesforce instances

As [Aleksandar Kovačević](https://www.linkedin.com/in/aleksandar-kova%C4%8Devi%C4%87-b48301107/) pointed out [on Reddit](https://www.reddit.com/r/salesforce/comments/116b7po/comment/j97m6x4/?utm_source=share&utm_medium=web2x&context=3) –

> One important thing that is not obvious the first time you do this is that the connected app you create in the developer org can be used to authenticate users to ANY salesforce instance. Meaning that users on specific instances don’t need to create the connected app manually to authenticate over the REST API, Salesforce handles that automatically.

Your customers do NOT need to go through this whole process. All they need to do is allow access to your app in the OAuth Consent screen that shows up.

Following these steps will put you on the right path to integrating Salesforce CRM.

Are you looking to natively integrate with all leading CRMs such as HubSpot, Close, Pipedrive, Copper, and Microsoft Dynamics Sales 365? Use [Truto.one](https://truto.one/) for free. It’s built for developers by developers to natively integrate all CRMs in one go.

If you have any questions or run into a roadblock, feel free to reach out to us at [support@truto.one](mailto:support@truto.one), we’ll be happy to help.
