Knowing how to create a connected app in Salesforce is essential for enabling secure communication between Salesforce
Shyam Agarwal Whether you're looking to optimize your Salesforce solution or need custom development, our team is here to help you unlock the full potential of Salesforce.
Want to integrate external applications with Salesforce? Learning how to create a connected app in Salesforce is essential for enabling secure communication between Salesforce and third-party systems, such as mobile apps, web applications, or REST APIs. This guide explains how to create a new connected app in Salesforce, including steps for Salesforce Lightning and REST API integration, in a simple, beginner-friendly way. Whether you are a developer or a business user, these step-by-step instructions will help you set up a connected app quickly.
A connected app in Salesforce is a framework that enables external applications to securely access Salesforce data and perform actions using APIs such as REST or SOAP. Connected apps use OAuth or SAML for authentication, ensuring secure and controlled access. For example, a mobile app might use a connected app to retrieve customer data from Salesforce, or a web app might integrate with Salesforce for real-time analytics.
According to Salesforce’s 2024 developer survey, more than 60% of Salesforce implementations involve connected apps for integrations, highlighting their importance in modern business workflows.
Understanding how to create a connected app in Salesforce is essential for enabling these integrations.
Creating a connected app enables seamless integration between Salesforce and external systems. Here is why businesses need to know how to create a new connected app in Salesforce:
Let us walk through how to create a connected app in Salesforce Lightning. These steps also apply to creating a connected app for REST API or other integrations.
Follow this guide to set up a new connected app:
Sign in to your Salesforce org with administrator credentials. Ensure you have the necessary permissions to manage connected apps.
In Salesforce Lightning, click the gear icon in the top right corner and select Setup. In Classic, click Setup in the top menu.
In the Setup menu, type “App Manager” in the Quick Find search box and select App Manager. Here, you will create your connected app.
Click New Connected App to begin configuring your app. Here is how to set it up:
Connected App Name: Enter a unique name (e.g., “MyApp_Integration”).
Require Secret for Web Server Flow: Enable for added security.
Click Save. It may take a few minutes for the app to be created. Once saved, you will see the Consumer Key and Consumer Secret, which are needed for API integrations.
Go to Manage Connected Apps in Setup, select your app, and click Edit Policies. Set OAuth policies, such as “Admin-approved users are preauthorized,” to control access.
Test the app by initiating an OAuth flow or making a REST API call using the Consumer Key and Secret. For example, use Postman to test creating a connected app in Salesforce for the REST API by sending a request to Salesforce’s API endpoint.
Share the Consumer Key and Secret with your external application securely. Monitor the application’s usage in Salesforce to ensure it is functioning as expected.
Need Help? Contact Our Experts
Creating a connected app for REST API integration follows the same steps as above but requires specific OAuth settings. Here is what to focus on:
For example, a developer building a mobile app can use the connected app to retrieve customer data from Salesforce through the REST API, enabling real-time updates on the go.
The process for creating a connected app in Salesforce Lightning is the same as the steps above, since Salesforce Lightning uses the same App Manager interface. However, Lightning provides a more intuitive user interface and additional features.
For example, a business using Salesforce Lightning can create a connected app to integrate with a custom web portal, enhancing the user experience with a modern interface.
Knowing how to create a new connected app in Salesforce offers several advantages:
A 2023 Salesforce report found that businesses using connected apps experienced a 30% increase in workflow efficiency from streamlined integrations.
To succeed in learning how to create a connected app in Salesforce, follow these tips: