Creating a Connected App


Creating a connected app is important to link external applications and the Salesforce ecosystem. With a connected app, you can integrate APIs, enable single sign-on (SSO), and build applications. This article discusses how to create a connected app in Salesforce.


Prerequisites

Before you begin, ensure you have a Salesforce organization setup.


Steps to Enable Connected Apps

  1. Log into your Salesforce instance.
  2. On the Setup page, enter Apps in the quick finder, and click Settings under External Client Apps. enable connected apps 2
  3. On the External Client App Settings page, under the Connected Apps section, enable the Allow creation of connected apps toggle. enable connected apps 3
  4. On the Enable Connected Apps Connection? dialog, click Enable. enable connected apps 4

Steps to Create a Connected App

  1. On the External Client App Settings page, click New Connected App. create connected apps 1
  2. In the Basic Information section, enter Connected App Name, API Name, and Contact Email. create connected apps 2
NOTE:
  • Salesforce automatically fills in the API Name input field.
  • Other input fields are optional.
  1. In the API section, select the Enable OAuth Settings checkbox to set Callback URL and Selected OAuth Scopes. The Selected OAuth Scopes are mandatory in the Connected App to connect & download the metadata.

API Details

  1. Click on Save. Save
NOTE:
  • Please wait for 10 - 15 minutes after creating the app, before trying to establish a connection.
  • A connected app is limited to only a few approvals. The system can revoke the oldest approval when the limit exceeds automatically. As a best practice, you can create a different connected app for each new application connection/connection.
  • Some Salesforce editions do not have API access. Generally, these editions are not used in development or production environments, and it is not possible to create connections within them.

    For more information on these editions, refer to Salesforce editions with API access.

Fetch Consumer Details

  1. Edit the connected app and click on Manage Consumer Details. This will open a new window. Edit
NOTE:

Ensure that none of the checkboxes in the API section are selected.

  1. On the Verify Your Identity window, enter OTP sent to the admin email. Verify
  2. Upon verification, the Consumer Details page will be displayed with Consumer Key and Consumer Secret. Consumer Details
  3. For Security Token, go to My Personal Information > Reset My Security Token and click on Reset Security Token. A new token will be sent to admin mail. Please refer to Salesforce for more information.

Refer to this Salesforce troubleshooting guide for the most common issues while creating a connected app.